mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
* Use passive FTP in wget.
This commit is contained in:
parent
e78f753aa8
commit
563afb7fcc
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ if test -f "$prefetch"; then
|
||||||
echo "using prefetched $prefetch";
|
echo "using prefetched $prefetch";
|
||||||
mv $prefetch $out || exit 1
|
mv $prefetch $out || exit 1
|
||||||
else
|
else
|
||||||
@wget@ "$url" -O "$out" || exit 1
|
@wget@ --passive-ftp "$url" -O "$out" || exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
actual=$(@bindir@/nix-hash --flat $out)
|
actual=$(@bindir@/nix-hash --flat $out)
|
||||||
|
|
|
@ -10,7 +10,7 @@ print "fetching $url...\n";
|
||||||
|
|
||||||
my $out = "@prefix@/store/nix-prefetch-url-$$";
|
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";
|
$? == 0 or die "unable to fetch $url";
|
||||||
|
|
||||||
my $hash=`@bindir@/nix-hash --flat $out`;
|
my $hash=`@bindir@/nix-hash --flat $out`;
|
||||||
|
|
Loading…
Reference in a new issue