Unverified Commit 7c494bf4 authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

nix-prefetch-darcs: print status to stderr; fetchdarcs: --no-cache in sandbox (#501607)

parents 1d08c373 6e6702e2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ set -o noglob
success=
for repository in $repositories; do
    echo "Trying to clone $repository $tagtext into $out …"
    if darcs clone --lazy $tagflags "$repository" "$out"; then
    if darcs clone --lazy --no-cache $tagflags "$repository" "$out"; then
        # remove metadata, because it can change
        rm -rf "$out/_darcs"
        success=1
+2 −6
Original line number Diff line number Diff line
@@ -127,11 +127,7 @@ if [ -z "$final_path" ]; then

	cd "$tmp_clone"
	# Do not print Darcs progress to stdout (else stdout isn’t parsable JSON)
	if [ -t 1 ]; then
		darcs clone $clone_args "$repository" "$name" >/dev/tty
	else
		darcs clone $clone_args "$repository" "$name" >/dev/null
	fi
	darcs clone "$clone_args" "$repository" "$name" 1>&2
	# Will put the current Darcs context into the store.
	new_context="$tmp_clone/${name}-context.txt"
	darcs log --repodir="$tmp_clone/$name" --context > "$new_context"