mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
gnu-maintenance: Better fix for 'guix refresh --update'.
The previous fix introduced in commit8176277487("import: Avoid duplicate trailing '/' in computed import URL.") regressed on the handling of *file* source URIs: $ guix refresh cairo --update Starting download of /tmp/guix-file.xUKazf From https://cairographics.org/cairo-1.18.4.tar.xz... download failed "https://cairographics.org/cairo-1.18.4.tar.xz" 404 "Not Found" * guix/gnu-maintenance.scm (import-html-release): Revert commit8176277487, instead adding a trailing slash only if it doesn't already exist. Change-Id: I6e3889f14badd8843bbf6436ad62a1594f553afe
This commit is contained in:
parent
9449ab3c20
commit
e77a676f21
1 changed files with 7 additions and 1 deletions
|
|
@ -677,7 +677,13 @@ also updated to the latest version, as explained in the doc of the
|
|||
\"rewrite-url\" procedure used."
|
||||
(let* ((current-version (package-version package))
|
||||
(name (package-upstream-name package))
|
||||
(url (canonicalize-url directory base-url))
|
||||
(url (if (string-null? directory)
|
||||
base-url
|
||||
(string-append base-url directory
|
||||
;; Ensure URL ends with a trailing slash.
|
||||
(if (string-suffix? "/" directory)
|
||||
""
|
||||
"/"))))
|
||||
(url (if rewrite-url?
|
||||
(rewrite-url url current-version #:to-version version
|
||||
#:partial-version? partial-version?)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue