summary refs log tree commit diff
path: root/pkgs/build-support/fetchbzr/nix-prefetch-bzr
diff options
context:
space:
mode:
authorMichael Ashton <data@gtf.org>2013-03-31 19:00:50 -0700
committerMichael Ashton <data@gtf.org>2013-03-31 19:16:18 -0700
commit8c63762d643e371d892fbd6a264e8057c880e60d (patch)
tree943c033a3c278a67bec143594d1521ae18306c3d /pkgs/build-support/fetchbzr/nix-prefetch-bzr
parent98ba667094f3395cd0e4999693541285ed5e0478 (diff)
downloadnixpkgs-8c63762d643e371d892fbd6a264e8057c880e60d.tar
nixpkgs-8c63762d643e371d892fbd6a264e8057c880e60d.tar.gz
nixpkgs-8c63762d643e371d892fbd6a264e8057c880e60d.tar.bz2
nixpkgs-8c63762d643e371d892fbd6a264e8057c880e60d.tar.lz
nixpkgs-8c63762d643e371d892fbd6a264e8057c880e60d.tar.xz
nixpkgs-8c63762d643e371d892fbd6a264e8057c880e60d.tar.zst
nixpkgs-8c63762d643e371d892fbd6a264e8057c880e60d.zip
- fetchbzr and nix-prefetch-bzr now only export, instead of cloning
- The option for cloning in nix-prefetch-bzr is removed
- ssl certificates are now ignored by fetchbzr

This means that no .bzr directory is downloaded.  Without this change, the
hash of the result is unpredictable, probably because of timestamping in the
.bzr directory.

Currently, the only package using fetchbzr is kicad.
Diffstat (limited to 'pkgs/build-support/fetchbzr/nix-prefetch-bzr')
-rwxr-xr-xpkgs/build-support/fetchbzr/nix-prefetch-bzr7
1 files changed, 1 insertions, 6 deletions
diff --git a/pkgs/build-support/fetchbzr/nix-prefetch-bzr b/pkgs/build-support/fetchbzr/nix-prefetch-bzr
index 167892fbb79..9ff86c20ae3 100755
--- a/pkgs/build-support/fetchbzr/nix-prefetch-bzr
+++ b/pkgs/build-support/fetchbzr/nix-prefetch-bzr
@@ -50,12 +50,7 @@ if test -z "$finalPath"; then
     trap "rm -rf $tmpPath" EXIT
 
     # Perform the checkout.
-    if test "$NIX_PREFETCH_BZR_LEAVE_DOT_BZR" != 1
-    then
-        bzr export $revarg "$tmpFile" "$url" >&2
-    else
-        bzr checkout --lightweight $revarg "$url" "$tmpFile" >&2
-    fi
+    bzr -Ossl.cert_reqs=none export $revarg --format=dir "$tmpFile" "$url"
 
     # Compute the hash.
     hash=$(nix-hash --type $hashType $hashFormat $tmpFile)