import: github: 'github-package?' uses 'package-upstream-name'.
* guix/import/github.scm (updated-github-url): Use 'package-upstream-name' instead of 'package-name'. This allows 'github-package?' to match more packages, given an appropriate upstream name.
This commit is contained in:
parent
a6baae7486
commit
dd6976dd75
|
@ -49,7 +49,7 @@ false if none is recognized"
|
||||||
(define (updated-url url)
|
(define (updated-url url)
|
||||||
(if (string-prefix? "https://github.com/" url)
|
(if (string-prefix? "https://github.com/" url)
|
||||||
(let ((ext (or (find-extension url) ""))
|
(let ((ext (or (find-extension url) ""))
|
||||||
(name (package-name old-package))
|
(name (package-upstream-name old-package))
|
||||||
(version (package-version old-package))
|
(version (package-version old-package))
|
||||||
(prefix (string-append "https://github.com/"
|
(prefix (string-append "https://github.com/"
|
||||||
(github-user-slash-repository url)))
|
(github-user-slash-repository url)))
|
||||||
|
|
Loading…
Reference in New Issue