tazwok rev 282

Fix update_packages_db(): remove log when a package is removed from wok; also remove pkg from lists in all cases.
author Antoine Bodin <gokhlayeh@slitaz.org>
date Mon Feb 14 18:13:16 2011 +0100 (2011-02-14)
parents 36d4194ff2a2
children 4f5a311f69dc
files tazwok
line diff
     1.1 --- a/tazwok	Mon Feb 14 17:50:17 2011 +0100
     1.2 +++ b/tazwok	Mon Feb 14 18:13:16 2011 +0100
     1.3 @@ -1166,11 +1166,12 @@
     1.4  				echo "Removing $PACKAGE from $pkg_repository."	
     1.5  				rm $pkg
     1.6  				[ -d $WOK/$PACKAGE ] && rm -r $WOK/$PACKAGE
     1.7 +				sed "/^$PACKAGE\t/d" -i $wan_db $dep_db
     1.8 +				for i in cookorder.txt cooklist commit blocked broken; do
     1.9 +					sed "/^$PACKAGE$/d" -i $PACKAGES_REPOSITORY/$i
    1.10 +				done	
    1.11 +				rm -f $LOCAL_REPOSITORY/log/$PACKAGE.html	
    1.12  				if [ "$pkg_repository" = "$INCOMING_REPOSITORY" ]; then
    1.13 -					sed "/^$PACKAGE\t/d" -i $wan_db $dep_db
    1.14 -					for i in cookorder.txt cooklist commit blocked broken; do
    1.15 -						sed "/^$PACKAGE$/d" -i $PACKAGES_REPOSITORY/$i
    1.16 -					done	
    1.17  					sed 1i"#PlanSort" -i $PACKAGES_REPOSITORY/cookorder.txt
    1.18  					regen_cooklist=yes
    1.19  				else