mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
list-packages: Make 'snippet-link' more tolerant.
* build-aux/list-packages.scm (package->sxml)[snippet-link]: If 'package-field-location' returns #f, use 'package-location.
This commit is contained in:
parent
840f71cdfc
commit
aad560a56f
1 changed files with 2 additions and 1 deletions
|
@ -106,7 +106,8 @@ (define (patch-url patch)
|
|||
(basename patch)))
|
||||
|
||||
(define (snippet-link snippet)
|
||||
(let ((loc (package-field-location package 'source)))
|
||||
(let ((loc (or (package-field-location package 'source)
|
||||
(package-location package))))
|
||||
`(a (@ (href ,(location-url loc))
|
||||
(title "Link to patch snippet"))
|
||||
"snippet")))
|
||||
|
|
Loading…
Reference in a new issue