mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
lint: archival: Fix crash in non-Git case.
Fixes a bug introduced in 29f3089c84
where
‘guix lint -c archival guile-wisp’ (for instance) would crash with a
match error because ‘lookup-by-nar-hash’ returns a string.
* guix/lint.scm (check-archival): Add SWHID case in the non-Git case.
Change-Id: I66fb060172d372041df47d90a14df168b0fa762d
This commit is contained in:
parent
cfc63f673f
commit
3328dec087
1 changed files with 2 additions and 0 deletions
|
@ -1736,6 +1736,8 @@ (define hash
|
||||||
(list id)
|
(list id)
|
||||||
#:field 'source)))))))
|
#:field 'source)))))))
|
||||||
((? content?)
|
((? content?)
|
||||||
|
'())
|
||||||
|
((? string? swhid)
|
||||||
'())))
|
'())))
|
||||||
'()))
|
'()))
|
||||||
((? local-file?)
|
((? local-file?)
|
||||||
|
|
Loading…
Reference in a new issue