All pastes #184890 Raw Edit

Anonymous

public text v1 · immutable
#184890 ·published 2006-09-28 12:01 UTC
rendered paste body
Index: scripts/download.pl
===================================================================
--- scripts/download.pl	(Revision 687)
+++ scripts/download.pl	(Working copy)
@@ -2,6 +2,7 @@
 use strict;
 use warnings;
 
+my @LOCAL_SITES = ( "http://localhost/sources" );
 my $target = shift @ARGV;
 my $filename = shift @ARGV;
 my $md5sum = shift @ARGV;
@@ -54,7 +55,7 @@
 	unlink "$target/$filename.md5sum";
 }
 
-foreach my $mirror (@ARGV) {
+foreach my $mirror (@LOCAL_SITES, @ARGV) {
 	if ($mirror =~ /^\@SF\/(.+)$/) {
 		my $sfpath = $1;
 		open SF, "wget -t1 -q -O- 'http://prdownloads.sourceforge.net/$sfpath/$filename' |";