aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHartmut Goebel <h.goebel@crazy-compilers.com>2022-06-29 12:54:38 +0200
committerHartmut Goebel <h.goebel@crazy-compilers.com>2022-07-11 15:35:28 +0200
commite8cd9e3d12c8c24b7c81e8787207f21e277da540 (patch)
treebb094c1991343a02554d6d974352aeaa7a5deeb0
parente0e87fe3a62d308f00dfada08c83c64ba70419e5 (diff)
downloadguix-e8cd9e3d12c8c24b7c81e8787207f21e277da540.tar.gz
guix-e8cd9e3d12c8c24b7c81e8787207f21e277da540.zip
import: github: Use correct URL scheme.
This effects packages hosted at github with source-uri like …/releases/download/REPO-VERSION/REPO-VERSION.EXT. E.g. ‘guix refresh udisks’ would fail to find the new release of ‘udisks’ before this change. * guix/import/github.scm(updated-url): For one one of the cases add missing 'prefix' and set new version.
-rw-r--r--guix/import/github.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/guix/import/github.scm b/guix/import/github.scm
index 51118d1d39..e1a1af7133 100644
--- a/guix/import/github.scm
+++ b/guix/import/github.scm
@@ -5,6 +5,7 @@
;;; Copyright © 2019 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
+;;; Copyright © 2022 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -95,8 +96,8 @@ false if none is recognized"
((string-suffix? (string-append "/releases/download/" repo "-"
version "/" repo "-" version ext)
url)
- (string-append "/releases/download/" repo "-" version "/" repo "-"
- version ext))
+ (string-append prefix "/releases/download/" repo "-" new-version "/"
+ repo "-" new-version ext))
(#t #f))) ; Some URLs are not recognised.
#f))