tiny-slitaz diff helper @ rev 2
Auto-update files.list.lzma (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 21 18:15:37 2012 +0200 (2012-08-21) |
parents | d203aafad141 |
children | 1d33b2a53785 |
line diff
1.1 --- a/helper Tue Aug 21 11:16:18 2012 +0200 1.2 +++ b/helper Tue Aug 21 18:15:37 2012 +0200 1.3 @@ -3,9 +3,11 @@ 1.4 1.5 init() 1.6 { 1.7 - PKGS=$(dirname $(readlink pkgs/base-tiny*)) 1.8 - [ $PKGS/$(ls -tr $PKGS | tail -n 1) -nt pkgs/files.list.lzma ] && 1.9 - pkgs/mklists 1.10 + [ "$(ls -t pkgs | sed q)" == "files.list.lzma" ] || 1.11 + for i in pkgs/*/receipt ; do 1.12 + . $i 1.13 + sed "s/^/$PACKAGE: /" $(dirname $i)/files.list 1.14 + done | lzma e pkgs/files.list.lzma -si 1.15 } 1.16 1.17 list_pkgs()