summaryrefslogtreecommitdiff
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)
downloadmtk-20170518-3d640eccc18d82e76746d1c68f0a35abf8d4c79f.zip
mtk-20170518-3d640eccc18d82e76746d1c68f0a35abf8d4c79f.tar.gz
mtk-20170518-3d640eccc18d82e76746d1c68f0a35abf8d4c79f.tar.bz2
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 9603e70..cd68a7b 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;
}