upstream: Correctly report failure to update Git checkouts.
authorLudovic Courtès <ludo@gnu.org>
Fri, 8 Mar 2019 22:13:56 +0000 (23:13 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 8 Mar 2019 22:21:59 +0000 (23:21 +0100)
commit0bd1498fc40820be35125cc0a62482d015b58e9b
treec2a441fe6c5e81db9a0e6d5d8227dde43037f8f1
parentd429878daf3e3eb21660ed80934b1d4b0603f6e1
upstream: Correctly report failure to update Git checkouts.

Fixes <https://bugs.gnu.org/34778>.
Reported by Gábor Boskovits <boskovits@gmail.com>.

* guix/upstream.scm (package-update/url-fetch): New procedure, with code
formerly in 'package-update'.
(%method-updates): New variable.
(package-update): Check the method to download PACKAGE's source, and
look up a corresponding update method in %METHOD-UPDATES, and raise an
error if none was found.
guix/upstream.scm