mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 12:39:36 -05:00
import: github: Check if git URIs are GitHub URIs.
This fixes a regression introduced in 9a5091d0c1
whereby packages with git origin URIs not hosted on GitHub would be wrongly
detected as being covered under the github updater.
Reported by Efraim Flashner <efraim@flashner.co.il>.
* guix/import/github.scm (updated-github-url): Check if git URIs are GitHub
URIs.
This commit is contained in:
parent
e5ad2cdf17
commit
2034a231dc
1 changed files with 3 additions and 1 deletions
|
@ -98,7 +98,9 @@ (define (updated-url url)
|
|||
(updated-url source-uri))
|
||||
((source-uri ...)
|
||||
(find updated-url source-uri))))
|
||||
((eq? fetch-method download:git-fetch)
|
||||
((and (eq? fetch-method download:git-fetch)
|
||||
(string-prefix? "https://github.com/"
|
||||
(download:git-reference-url source-uri)))
|
||||
(download:git-reference-url source-uri))
|
||||
(else #f))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue