* Use fixed-output hashes in fetchsvn.

* In nix-prefetch-svn, support setuid installations where the user has
  no write access to the Nix store.

svn path=/nixpkgs/trunk/; revision=2275
This commit is contained in:
Eelco Dolstra
2005-02-22 16:27:28 +00:00
parent 1177e8925f
commit fa88e75c45
3 changed files with 26 additions and 10 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
header "exporting $url (r$rev) into $out"
prefetch=$(dirname $out)/svn-checkout-tmp-$md5
prefetch=$(dirname $out)/svn-checkout-tmp-$outputHash
echo $prefetch
if test -e "$prefetch"; then
mv $prefetch $out
@@ -11,8 +11,8 @@ else
fi
actual=$(nix-hash $out)
if test "$actual" != "$md5"; then
echo "hash is $actual, expected $md5" >&2
if test "$actual" != "$outputHash"; then
echo "hash is $actual, expected $outputHash" >&2
exit 1
fi