mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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.
This commit is contained in:
parent
1ee3d2dcb8
commit
42314ffa07
2 changed files with 43 additions and 21 deletions
|
@ -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))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue