GNU bug report logs -
#57515
[PATCH 0/8] Stop unmirroring during updates.
Previous Next
Reported by: Maxime Devos <maximedevos <at> telenet.be>
Date: Thu, 1 Sep 2022 09:01:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Partially fixes: https://issues.guix.gnu.org/57477.
TODO: test case, it's http!
I'm not aware of a package using both latest-html-release and mirrors, so it
has not been completely tested. However, updating "yt-dlp" appears to work
(except for git-fetch not being supported yet). The expression for the
signature-urls field had to be tweaked to not call uri-mirror-rewrite on #false.
* guix/gnu-maintenance.scm (latest-html-release)[url->research]{urls,signature-urls}:
Call uri-mirror-rewrite on the URLs.
---
guix/gnu-maintenance.scm | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/guix/gnu-maintenance.scm b/guix/gnu-maintenance.scm
index 84fd087319..2f09539d5d 100644
--- a/guix/gnu-maintenance.scm
+++ b/guix/gnu-maintenance.scm
@@ -532,9 +532,12 @@ (define (url->release url)
(upstream-source
(package package)
(version version)
- (urls (list url))
+ ;; uri-mirror-rewrite: Don't turn nice mirror:// URIs into ftp://
+ ;; URLs during "guix refresh -u".
+ (urls (list (uri-mirror-rewrite url)))
(signature-urls
- (list ((or file->signature file->signature/guess) url))))))))
+ (and=> ((or file->signature file->signature/guess) url)
+ (lambda (url) (list (uri-mirror-rewrite url))))))))))
(define candidates
(filter-map url->release links))
--
2.37.2
This bug report was last modified 2 years and 242 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.