mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
* Quick hack to support checkout by date.
svn path=/nixpkgs/trunk/; revision=10890
This commit is contained in:
parent
66738cc356
commit
b94af47b86
@ -52,11 +52,13 @@ if test -z "$finalPath"; then
|
||||
|
||||
# Perform the checkout.
|
||||
if test -z "$tag"; then
|
||||
rtag="-DNOW"
|
||||
args=(-D "now")
|
||||
elif test "$USE_DATE" = "1"; then
|
||||
args=(-D "$tag")
|
||||
else
|
||||
rtag="-r $tag"
|
||||
args=(-r "$tag")
|
||||
fi
|
||||
(cd "$tmpPath" && cvs -f -z7 -d $cvsRoot export $rtag -d cvs-export $module >&2)
|
||||
(cd "$tmpPath" && cvs -f -z0 -d $cvsRoot export "${args[*]}" -d cvs-export $module >&2)
|
||||
|
||||
# Compute the hash.
|
||||
hash=$(nix-hash --type $hashType $hashFormat $tmpFile)
|
||||
|
Loading…
Reference in New Issue
Block a user