diff options
author | Benno Fünfstück <benno.fuenfstueck@gmail.com> | 2014-06-28 20:33:28 +0200 |
---|---|---|
committer | Benno Fünfstück <benno.fuenfstueck@gmail.com> | 2014-06-28 21:06:10 +0200 |
commit | e10001042d6fc2b4246f51b5fa1625b8bf7e8df3 (patch) | |
tree | f01e3e8ab58fb4474dc16df523257def2d05771f /pkgs/build-support/fetchdarcs/builder.sh | |
parent | 9b7dbcc83e2b8c8fcb37bc204bba83311e17eca0 (diff) | |
download | nixpkgs-e10001042d6fc2b4246f51b5fa1625b8bf7e8df3.tar nixpkgs-e10001042d6fc2b4246f51b5fa1625b8bf7e8df3.tar.gz nixpkgs-e10001042d6fc2b4246f51b5fa1625b8bf7e8df3.tar.bz2 nixpkgs-e10001042d6fc2b4246f51b5fa1625b8bf7e8df3.tar.lz nixpkgs-e10001042d6fc2b4246f51b5fa1625b8bf7e8df3.tar.xz nixpkgs-e10001042d6fc2b4246f51b5fa1625b8bf7e8df3.tar.zst nixpkgs-e10001042d6fc2b4246f51b5fa1625b8bf7e8df3.zip |
fetchbzr, fetchdarcs, fetchhg: use `rev` attr
This makes it match the behaviour of fetchgit and fetchsvn, so it's easier to write scripts that support all of them.
Diffstat (limited to 'pkgs/build-support/fetchdarcs/builder.sh')
-rw-r--r-- | pkgs/build-support/fetchdarcs/builder.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/build-support/fetchdarcs/builder.sh b/pkgs/build-support/fetchdarcs/builder.sh index efff5ff5ebf..301deb98307 100644 --- a/pkgs/build-support/fetchdarcs/builder.sh +++ b/pkgs/build-support/fetchdarcs/builder.sh @@ -2,9 +2,9 @@ source $stdenv/setup tagtext="" tagflags="" -if test -n "$tag"; then - tagtext="(tag $tag) " - tagflags="--tag=$tag" +if test -n "$rev"; then + tagtext="(tag $rev) " + tagflags="--tag=$rev" elif test -n "$context"; then tagtext="(context) " tagflags="--context=$context" |