# HG changeset patch # User Pascal Bellard # Date 1208020466 0 # Node ID b87c65b3b7519f2eee315d82342005196ffee678 # Parent cab996cdd155b46b173ce6f07020f04199a38f5f Do not trust MODIFY_PACKAGES diff -r cab996cdd155 -r b87c65b3b751 tazpkg --- a/tazpkg Thu Apr 10 16:21:24 2008 +0200 +++ b/tazpkg Sat Apr 12 17:14:26 2008 +0000 @@ -237,7 +237,6 @@ cd $TMP_DIR extract_package SELF_INSTALL=0 - MODIFY_PACKAGES="" # Include temporary receipt to get the right variables. . $PWD/receipt if [ $SELF_INSTALL -ne 0 -a -n "$ROOT" ]; then @@ -250,10 +249,12 @@ fi fi # Remember modified packages - for i in $MODIFY_PACKAGES; do - [ -d $ROOT$INSTALLED/$i ] || continue - grep -qs ^$PACKAGE$ $ROOT$INSTALLED/$i/modifiers && continue - echo "$PACKAGE" >> $ROOT$INSTALLED/$i/modifiers + for i in $(cat files.list); do + [ -e $ROOT$i ] || continue + for j in $(grep -l ^$i$ $ROOT$INSTALLED/*/files.list); do + grep -qs ^$PACKAGE$ $(dirname $j)/modifiers && continue + echo "$PACKAGE" >> $(dirname $j)/modifiers + done done # Make the installed package data dir to store # the receipt and the files list.