swh: 'lookup-origin-revision' ignores partial visits.
* guix/swh.scm (lookup-origin-revision): Filter out visits with a status different from 'full.master
parent
67bf612554
commit
46eac03e72
|
@ -455,7 +455,11 @@ URL could not be found."
|
|||
(match (lookup-origin url)
|
||||
(#f #f)
|
||||
(origin
|
||||
(match (filter visit-snapshot-url (origin-visits origin))
|
||||
(match (filter (lambda (visit)
|
||||
;; Return #f if (visit-snapshot VISIT) would return #f.
|
||||
(and (visit-snapshot-url visit)
|
||||
(eq? 'full (visit-status visit))))
|
||||
(origin-visits origin))
|
||||
((visit . _)
|
||||
(let ((snapshot (visit-snapshot visit)))
|
||||
(match (and=> (find (lambda (branch)
|
||||
|
|
Reference in New Issue