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
commit3d640eccc18d82e76746d1c68f0a35abf8d4c79f (patch)
tree649b271abbd2c8d23fb979e29de4fb847656a249 /scripts
parent5472898c0c3fa2bd590adf4b1f42e81608a9db99 (diff)
downloadupstream-3d640eccc18d82e76746d1c68f0a35abf8d4c79f.tar.gz
upstream-3d640eccc18d82e76746d1c68f0a35abf8d4c79f.tar.bz2
upstream-3d640eccc18d82e76746d1c68f0a35abf8d4c79f.zip
scripts/download.pl: add support for adding mirrors through an environment variable
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43654
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;
}