tazpkg rev 65
Do not trust MODIFY_PACKAGES
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 12 17:14:26 2008 +0000 (2008-04-12) |
parents | cab996cdd155 |
children | 7fa94e3e9e0b |
files | tazpkg |
line diff
1.1 --- a/tazpkg Thu Apr 10 16:21:24 2008 +0200 1.2 +++ b/tazpkg Sat Apr 12 17:14:26 2008 +0000 1.3 @@ -237,7 +237,6 @@ 1.4 cd $TMP_DIR 1.5 extract_package 1.6 SELF_INSTALL=0 1.7 - MODIFY_PACKAGES="" 1.8 # Include temporary receipt to get the right variables. 1.9 . $PWD/receipt 1.10 if [ $SELF_INSTALL -ne 0 -a -n "$ROOT" ]; then 1.11 @@ -250,10 +249,12 @@ 1.12 fi 1.13 fi 1.14 # Remember modified packages 1.15 - for i in $MODIFY_PACKAGES; do 1.16 - [ -d $ROOT$INSTALLED/$i ] || continue 1.17 - grep -qs ^$PACKAGE$ $ROOT$INSTALLED/$i/modifiers && continue 1.18 - echo "$PACKAGE" >> $ROOT$INSTALLED/$i/modifiers 1.19 + for i in $(cat files.list); do 1.20 + [ -e $ROOT$i ] || continue 1.21 + for j in $(grep -l ^$i$ $ROOT$INSTALLED/*/files.list); do 1.22 + grep -qs ^$PACKAGE$ $(dirname $j)/modifiers && continue 1.23 + echo "$PACKAGE" >> $(dirname $j)/modifiers 1.24 + done 1.25 done 1.26 # Make the installed package data dir to store 1.27 # the receipt and the files list.