download.pl: fix PKG_SOURCE_URL=file://... urls
diff --git a/scripts/download.pl b/scripts/download.pl index 86a6bf4..84af8de 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -77,9 +77,11 @@ sub download } if (open TMPDLS, "find $cache -follow -name $filename 2>/dev/null |"){ my $i = 0; + my $link_cache = ""; my $link = ""; while (defined($link = readline TMPDLS)) { chomp $link; + $link_cache=$link; $i++; if ($i > 1) { print("$i or more instances of $filename in $cache found . Only one instance allowed.\n"); @@ -87,6 +89,7 @@ sub download } } close TMPDLS; + $link=$link_cache; if ($i < 1) { print("No instances of $filename found in $cache.\n"); return; _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel