aboutsummaryrefslogtreecommitdiff
path: root/guix/git-download.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-08-28 11:10:55 +0200
committerLudovic Courtès <ludo@gnu.org>2019-08-28 18:52:51 +0200
commitb8815c5ec4ee70c535693031072447671c1b781f (patch)
tree97eff13a5bfde5c4e47dfe6d5e11c73dfa5cdf44 /guix/git-download.scm
parentc6deb680e263b637a27fc6cc7782fdbf5485623e (diff)
downloadguix-b8815c5ec4ee70c535693031072447671c1b781f.tar
guix-b8815c5ec4ee70c535693031072447671c1b781f.tar.gz
swh: 'swh-download' prints debugging info.
* guix/git-download.scm (git-fetch): Print a message before calling 'swh-download'. * guix/swh.scm (swh-download): Add #:log-port. Write debugging messages to LOG-PORT.
Diffstat (limited to 'guix/git-download.scm')
-rw-r--r--guix/git-download.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/guix/git-download.scm b/guix/git-download.scm
index 8f84681d46..c62bb8ad0f 100644
--- a/guix/git-download.scm
+++ b/guix/git-download.scm
@@ -139,8 +139,11 @@ HASH-ALGO (a symbol). Use NAME as the file name, or a generic name if #f."
;; As a last resort, attempt to download from Software Heritage.
;; XXX: Currently recursive checkouts are not supported.
(and (not recursive?)
- (swh-download (getenv "git url") (getenv "git commit")
- #$output)))))))
+ (begin
+ (format (current-error-port)
+ "Trying to download from Software Heritage...~%")
+ (swh-download (getenv "git url") (getenv "git commit")
+ #$output))))))))
(mlet %store-monad ((guile (package->derivation guile system)))
(gexp->derivation (or name "git-checkout") build