diff options
Diffstat (limited to 'guix/scripts')
-rw-r--r-- | guix/scripts/pack.scm | 3 | ||||
-rwxr-xr-x | guix/scripts/substitute.scm | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm index 626c592e1c..9e91bc22ac 100644 --- a/guix/scripts/pack.scm +++ b/guix/scripts/pack.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2015, 2017 Ludovic Courtès <ludo@gnu.org> +;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il> ;;; ;;; This file is part of GNU Guix. ;;; @@ -59,7 +60,7 @@ (compressor "lzip" "lz" #~(#+(file-append lzip "/bin/lzip") "-9")) (compressor "xz" "xz" - #~(#+(file-append xz "/bin/xz") "-e")) + #~(#+(file-append xz "/bin/xz") "-e -T0")) (compressor "bzip2" "bz2" #~(#+(file-append bzip2 "/bin/bzip2") "-9")))) diff --git a/guix/scripts/substitute.scm b/guix/scripts/substitute.scm index faeb019120..d3bccf4ddb 100755 --- a/guix/scripts/substitute.scm +++ b/guix/scripts/substitute.scm @@ -520,8 +520,9 @@ indicates that PATH is unavailable at CACHE-URL." (define (narinfo-request cache-url path) "Return an HTTP request for the narinfo of PATH at CACHE-URL." (let ((url (string-append cache-url "/" (store-path-hash-part path) - ".narinfo"))) - (build-request (string->uri url) #:method 'GET))) + ".narinfo")) + (headers '((User-Agent . "GNU Guile")))) + (build-request (string->uri url) #:method 'GET #:headers headers))) (define* (http-multiple-get base-uri proc seed requests #:key port (verify-certificate? #t)) |