tazpkg rev 787 slitaz-tank
tazpkg: Add minor changes to grab wanted.txt, depends.txt, and libraries.txt if they exist in repo.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Apr 18 17:43:23 2015 +0000 (2015-04-18) |
parents | c389814e4f9a |
children | |
files | tazpkg |
line diff
1.1 --- a/tazpkg Sat Apr 18 16:25:03 2015 +0300 1.2 +++ b/tazpkg Sat Apr 18 17:43:23 2015 +0000 1.3 @@ -2234,6 +2234,7 @@ 1.4 action "Creating backup of the last packages list..." 1.5 for i in packages.desc packages.$SUM packages.txt \ 1.6 packages.list packages.equiv files.list.lzma \ 1.7 + wanted.txt depends.txt libraries.txt \ 1.8 extra.list mirrors packages.info 1.9 do 1.10 mv -f $i $i.bak 2>/dev/null 1.11 @@ -2241,6 +2242,14 @@ 1.12 status 1.13 fi 1.14 1.15 + # ID file & wanted/depends/libraries files were implemented 1.16 + # at the same time. Not all repositories have them. 1.17 + if [ -f ID ]; then 1.18 + for i in wanted depends libraries; do 1.19 + download_from $primary_mirror $i.txt 1.20 + done 1.21 + fi 1.22 + 1.23 for i in desc $SUM txt list equiv; do 1.24 download_from "$(cat mirror)" packages.$i 1.25 done