diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-04-14 21:40:20 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-04-15 00:32:18 +0200 |
commit | 7d27a0259bc7a37c04b17ffc2953837fcc3e75ff (patch) | |
tree | c4128169bccde428937d5844c0547c7e3b6059a9 /guix/upstream.scm | |
parent | 85c7e8e611be1bdc2eed47e61e9ff45d92ab293d (diff) | |
download | gnu-guix-7d27a0259bc7a37c04b17ffc2953837fcc3e75ff.tar gnu-guix-7d27a0259bc7a37c04b17ffc2953837fcc3e75ff.tar.gz |
upstream: Pass a package object to updaters.
* guix/upstream.scm (package-update-path): Pass PACKAGE to
'latest-release'.
* guix/gnu-maintenance.scm (latest-release*)
(latest-gnome-release, latest-xorg-release): Adjust accordingly.
* guix/import/cran.scm (latest-cran-release):
(latest-bioconductor-release): Likewise.
* guix/import/elpa.scm (latest-release): Likewise.
* guix/import/gem.scm (latest-release): Likewise.
* guix/import/github.scm (latest-release): Likewise.
* guix/import/hackage.scm (latest-release): Likewise.
* guix/import/pypi.scm (latest-release): Likewise.
Diffstat (limited to 'guix/upstream.scm')
-rw-r--r-- | guix/upstream.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guix/upstream.scm b/guix/upstream.scm index 02c50c06c8..167c9ff89a 100644 --- a/guix/upstream.scm +++ b/guix/upstream.scm @@ -128,11 +128,11 @@ them matches." updaters)) (define (package-update-path package updaters) - "Return an upstream source to update PACKAGE to, or #f if no update is -needed or known." + "Return an upstream source to update PACKAGE, a <package> object, or #f if +no update is needed or known." (match (lookup-updater package updaters) ((? procedure? latest-release) - (match (latest-release (package-name package)) + (match (latest-release package) ((and source ($ <upstream-source> name version)) (and (version>? version (package-version package)) source)) |