summary refs log tree commit diff
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-06-30 09:44:26 +0200
commit7035eb7a41bdce953afe8d70d3d7a74b67d177fc (patch)
tree3206cc3889f137a1a848f81c651b1d0d0c73f4c2
parent1d4cc7acf18b3e13e3921f41c44c7c449bc636f2 (diff)
downloadguix-7035eb7a41bdce953afe8d70d3d7a74b67d177fc.tar.gz
import: github: Fix updater.
* 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))