mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 06:06:53 -05:00
import/print: Don't factorize URI if there's no version match.
* guix/import/print.scm (package->code): If FACTORIZE-URI returns just the unmodified string use that as the URI.
This commit is contained in:
parent
3fd4c4c839
commit
3c0422b9be
1 changed files with 3 additions and 1 deletions
|
@ -79,7 +79,9 @@ (define (source->code source version)
|
|||
(patches (origin-patches source)))
|
||||
`(origin
|
||||
(method ,(procedure-name method))
|
||||
(uri (string-append ,@(factorize-uri uri version)))
|
||||
(uri (string-append ,@(match (factorize-uri uri version)
|
||||
((? string? uri) (list uri))
|
||||
(factorized factorized))))
|
||||
(sha256
|
||||
(base32
|
||||
,(format #f "~a" (bytevector->nix-base32-string sha256))))
|
||||
|
|
Loading…
Reference in a new issue