scripts/download.pl: add support for adding mirrors through an environment variable
authorFelix Fietkau <nbd@openwrt.org>
Fri, 12 Dec 2014 12:35:23 +0000 (12:35 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 12 Dec 2014 12:35:23 +0000 (12:35 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43654

scripts/download.pl

index 9603e70..cd68a7b 100755 (executable)
@@ -40,6 +40,9 @@ sub localmirrors {
                close CONFIG;
        };
 
+       my $mirror = $ENV{'DOWNLOAD_MIRROR'};
+       $mirror and push @mlist, split(/;/, $mirror);
+
        return @mlist;
 }