Skip to content
Snippets Groups Projects
Commit 563afb7f authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

* Use passive FTP in wget.

parent e78f753a
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ if test -f "$prefetch"; then
echo "using prefetched $prefetch";
mv $prefetch $out || exit 1
else
@wget@ "$url" -O "$out" || exit 1
@wget@ --passive-ftp "$url" -O "$out" || exit 1
fi
actual=$(@bindir@/nix-hash --flat $out)
......
......@@ -10,7 +10,7 @@ print "fetching $url...\n";
my $out = "@prefix@/store/nix-prefetch-url-$$";
system "@wget@ '$url' -O '$out'";
system "@wget@ --passive-ftp '$url' -O '$out'";
$? == 0 or die "unable to fetch $url";
my $hash=`@bindir@/nix-hash --flat $out`;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment