guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: import: github: Use correct URL scheme.


From: guix-commits
Subject: branch master updated: import: github: Use correct URL scheme.
Date: Mon, 11 Jul 2022 09:36:15 -0400

This is an automated email from the git hooks/post-receive script.

htgoebel pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new e8cd9e3d12 import: github: Use correct URL scheme.
e8cd9e3d12 is described below

commit e8cd9e3d12c8c24b7c81e8787207f21e277da540
Author: Hartmut Goebel <h.goebel@crazy-compilers.com>
AuthorDate: Wed Jun 29 12:54:38 2022 +0200

    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.
---
 guix/import/github.scm | 5 +++--
 1 file 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))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]