tazpkg diff modules/recharge @ rev 846
Remove "busybox" "prefixes" (thanks llev)
We used "busybox wget", etc. to be sure we called Busybox's "wget", not any other "wget". Workaround already done in "getenv" module.
We used "busybox wget", etc. to be sure we called Busybox's "wget", not any other "wget". Workaround already done in "getenv" module.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Oct 09 13:14:01 2015 +0300 (2015-10-09) |
parents | a02e36d44d06 |
children | d62dc010e0ee |
line diff
1.1 --- a/modules/recharge Fri Aug 28 16:10:34 2015 +0300 1.2 +++ b/modules/recharge Fri Oct 09 13:14:01 2015 +0300 1.3 @@ -29,7 +29,7 @@ 1.4 get_from_mirror() { 1.5 case "$mirror" in 1.6 http://* | https://* | ftp://*) 1.7 - busybox wget -c -q -T 30 -U "$UA" "$mirror$1" 2>/dev/null;; 1.8 + wget -c -q -T 30 -U "$UA" "$mirror$1" 2>/dev/null;; 1.9 *) 1.10 ln -sf "$mirror$1" .;; 1.11 esac 1.12 @@ -70,7 +70,7 @@ 1.13 esac 1.14 1.15 for path in $repo_to_recharge; do 1.16 - [ ! -f "$path/mirror" ] && continue # skip 1.17 + [ ! -s "$path/mirror" ] && continue # skip 1.18 cd "$path" 1.19 # Mirror URL will have a trailing slash 1.20 mirror=$(cat mirror); mirror="${mirror%/}/" 1.21 @@ -119,7 +119,7 @@ 1.22 action 'Getting "%s"...' "$bundle" 1.23 get_from_mirror "$bundle" 1.24 if [ -f "$bundle" ]; then 1.25 - busybox tar -xaf "$bundle"; rm "$bundle" 1.26 + tar -xaf "$bundle"; rm "$bundle" 1.27 else 1.28 recharging_failed "$path"; continue 1.29 fi