swh: Handle absolute URLs being returned by the API.
authorJakub Kądziołka <kuba@kadziolka.net>
Sun, 23 Feb 2020 11:06:31 +0000 (12:06 +0100)
committerJakub Kądziołka <kuba@kadziolka.net>
Sun, 23 Feb 2020 11:30:18 +0000 (12:30 +0100)
commit6a3911b88f84eff6b3268b4687caea405f43e39b
tree6f20f82eca0daf8fd6867cce93ee8f2362b83bc7
parent5ce67a1c202d3cddf5d3b98a72eea78e02d4a681
swh: Handle absolute URLs being returned by the API.

* guix/swh.scm (swh-url): Don't prepend (%swh-base-url) if a domain is
  already present.

This fixes the "guix lint: warning: while connecting to Software Heritage:
host lookup failure: Name or service not known" error message.
guix/swh.scm