Author: rob
Date: Tue Oct 19 11:39:24 2010
New Revision: 24362
URL: https://svn.nixos.org/websvn/nix/?rev=24362&sc=1
Log:
mirror-channel.pl: check if file is a bzip2 file
Modified:
release/trunk/channels/mirror-channel.pl
Modified: release/trunk/channels/mirror-channel.pl
==============================================================================
--- release/trunk/channels/mirror-channel.pl Tue Oct 19 08:34:13 2010
(r24361)
+++ release/trunk/channels/mirror-channel.pl Tue Oct 19 11:39:24 2010
(r24362)
@@ -80,6 +80,7 @@
print "downloading $srcURL\n";
my $dstFileTmp = "$narPath/.tmp.$$.nar.$dstName";
system("$curl '$srcURL' > $dstFileTmp") == 0 or die "failed to
download `$srcURL'";
+ system("bunzip2 -t $dstFileTmp &> /dev/null") == 0 or die
"downloaded file is not a bzip2 file!";
rename($dstFileTmp, $dstFile) or die "cannot rename $dstFileTmp";
}
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits