summary refs log tree commit diff
path: root/pkgs/build-support/fetchdarcs/builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/fetchdarcs/builder.sh')
-rw-r--r--pkgs/build-support/fetchdarcs/builder.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchdarcs/builder.sh b/pkgs/build-support/fetchdarcs/builder.sh
index 7214eda4266..a211de42da4 100644
--- a/pkgs/build-support/fetchdarcs/builder.sh
+++ b/pkgs/build-support/fetchdarcs/builder.sh
@@ -5,11 +5,14 @@ tagflags=""
 if test -n "$tag"; then
     tagtext="(tag $tag) "
     tagflags="--tag=$tag"
+elif test -n "$context"; then
+    tagtext="(context) "
+    tagflags="--context=$context"
 fi
 
 header "getting $url $partial ${tagtext} into $out"
 
-darcs get --no-pristine-tree $partial $tagflags "$url" "$out"
+darcs get --lazy --ephemeral $tagflags "$url" "$out"
 # remove metadata, because it can change
 rm -rf "$out/_darcs"