Author: nbd
Date: 2014-12-12 13:35:23 +0100 (Fri, 12 Dec 2014)
New Revision: 43654

Modified:
   trunk/scripts/download.pl
Log:
scripts/download.pl: add support for adding mirrors through an environment 
variable

Signed-off-by: Felix Fietkau <[email protected]>

Modified: trunk/scripts/download.pl
===================================================================
--- trunk/scripts/download.pl   2014-12-12 12:33:34 UTC (rev 43653)
+++ trunk/scripts/download.pl   2014-12-12 12:35:23 UTC (rev 43654)
@@ -40,6 +40,9 @@
                close CONFIG;
        };
 
+       my $mirror = $ENV{'DOWNLOAD_MIRROR'};
+       $mirror and push @mlist, split(/;/, $mirror);
+
        return @mlist;
 }
 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to