tazpkg rev 699
Introduce packages.info: download on recharge.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 04 01:23:47 2014 +0200 (2014-12-04) |
parents | 8e7a183ebc67 |
children | 1d7f3c9ce99c |
files | tazpkg |
line diff
1.1 --- a/tazpkg Wed Dec 03 19:00:15 2014 +0100 1.2 +++ b/tazpkg Thu Dec 04 01:23:47 2014 +0200 1.3 @@ -531,6 +531,8 @@ 1.4 # Mirror URL can have a trailing slash or not. 1.5 http://*|ftp://*) 1.6 busybox wget -c ${i%/}/$@ && break ;; 1.7 + https://*) 1.8 + echo 'Sorry, https not supported' ;; 1.9 *) 1.10 ln -sf $i/$1 . && break ;; 1.11 esac 1.12 @@ -2140,19 +2142,24 @@ 1.13 action "Creating backup of the last packages list..." 1.14 for i in packages.desc packages.$SUM packages.txt \ 1.15 packages.list packages.equiv files.list.lzma \ 1.16 - extra.list mirrors 1.17 + extra.list mirrors packages.info 1.18 do 1.19 mv -f $i $i.bak 2>/dev/null 1.20 done 1.21 status 1.22 fi 1.23 1.24 - for i in desc md5 txt list equiv; do 1.25 + for i in desc $SUM txt list equiv; do 1.26 download_from "$(cat mirror)" packages.$i 1.27 done 1.28 download_from "$(cat mirror)" files.list.lzma 1.29 download_from "$(cat mirror)" extra.list 1.30 - download_from "$(sed 's|packages/.*||' < mirror)" mirrors 1.31 + download_from "$(sed 's|packages/.*||' mirror)" mirrors 1.32 + 1.33 + # packages.info 1.34 + download_from "$(cat mirror)" packages.info.lzma 1.35 + lzma d packages.info.lzma packages.info 1.36 + rm packages.info.lzma 1.37 1.38 if [ -f "packages.list.bak" ]; then 1.39 diff -u packages.list.bak packages.list | grep ^+[a-z] > packages.diff 1.40 @@ -2161,7 +2168,7 @@ 1.41 sed -i s/+// packages.diff 1.42 title 'Mirrored packages diff' 1.43 cat packages.diff 1.44 - new_pkgs=$(wc -l < packages.diff) 1.45 + new_pkgs=$(wc -l packages.diff) 1.46 if [ "$new_pkgs" != 0 ]; then 1.47 num=$(emsg "<c 32>$new_pkgs</c>") 1.48 footer "$(eval_ngettext \