aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-12-12 12:35:23 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-12-12 12:35:23 +0000
commit12868dc7a5236641175b7b8b627164c18fc85550 (patch)
treeadada6dbddce52e887eea8df281e8093d4d9fb4b /scripts
parent9e70c445b6aa929c6b3d467e526a7ec9d6596475 (diff)
downloadupstream-12868dc7a5236641175b7b8b627164c18fc85550.tar.gz
upstream-12868dc7a5236641175b7b8b627164c18fc85550.tar.bz2
upstream-12868dc7a5236641175b7b8b627164c18fc85550.zip
scripts/download.pl: add support for adding mirrors through an environment variable
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43654 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/download.pl3
1 files changed, 3 insertions, 0 deletions
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;
}