From: Felix Fietkau Date: Fri, 12 Dec 2014 12:35:23 +0000 (+0000) Subject: scripts/download.pl: add support for adding mirrors through an environment variable X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3d640eccc18d82e76746d1c68f0a35abf8d4c79f;p=openwrt%2Fstaging%2Fdangole.git scripts/download.pl: add support for adding mirrors through an environment variable Signed-off-by: Felix Fietkau SVN-Revision: 43654 --- diff --git a/scripts/download.pl b/scripts/download.pl index 9603e708d1..cd68a7bcd0 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -40,6 +40,9 @@ sub localmirrors { close CONFIG; }; + my $mirror = $ENV{'DOWNLOAD_MIRROR'}; + $mirror and push @mlist, split(/;/, $mirror); + return @mlist; }