import: launchpad: Handle list of source URLs correctly.

* guix/import/launchpad.scm (updated-launchpad-url): Return updated URL when
package has a list of URLs, not the old URL.
This commit is contained in:
Arun Isaac 2020-07-04 23:42:02 +05:30
parent ce04a92f78
commit 8b9b5a7f58
No known key found for this signature in database
GPG Key ID: 2E25EE8B61802BB3

View File

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2019, 2020 Arun Isaac <arunisaac@systemreboot.net>
;;;
;;; This file is part of GNU Guix.
;;;
@ -66,7 +66,7 @@ false if none is recognized"
((? string?)
(updated-url source-uri))
((source-uri ...)
(find updated-url source-uri))))))
(any updated-url source-uri))))))
(_ #f)))
(define (launchpad-package? package)