summaryrefslogtreecommitdiff
path: root/guix/scripts
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-03-27 14:56:23 +0100
committerLudovic Courtès <ludo@gnu.org>2019-03-27 14:59:42 +0100
commit42314ffa072f31cc1cb44df38b1f8fcca19d9d3c (patch)
tree528aba2eec665b8df8288420e5902681f5cc8f21 /guix/scripts
parent1ee3d2dcb8892b2ed1a0212fdd6ac2c47f2c8da2 (diff)
refresh: Update the source code URL.
Reported by Tobias Geerinckx-Rice <me@tobias.gr> in <https://bugs.gnu.org/35010>. * guix/upstream.scm (update-package-source): Take 'source' instead of 'version' as the second argument. [update-expression]: Change to take 'replacements', a list of replacement pairs. Compute OLD-URL and NEW-URL and replace the dirname of the OLD-URL with that of NEW-URL. * guix/scripts/refresh.scm (update-package): Adjust call to 'update-package-source' accordingly.
Diffstat (limited to 'guix/scripts')
-rw-r--r--guix/scripts/refresh.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/scripts/refresh.scm b/guix/scripts/refresh.scm
index 6d77e2642b..dd7026a6a4 100644
--- a/guix/scripts/refresh.scm
+++ b/guix/scripts/refresh.scm
@@ -333,7 +333,7 @@ warn about packages that have no matching updater."
(upstream-source-input-changes source))
(let ((hash (call-with-input-file tarball
port-sha256)))
- (update-package-source package version hash)))
+ (update-package-source package source hash)))
(warning (G_ "~a: version ~a could not be \
downloaded and authenticated; not updating~%")
(package-name package) version))))