]> hackdaworld.org Git - hdw-linux/hdw-linux.git/commitdiff
imprved info/dir issue
authorhackbard <hackbard>
Sun, 25 Jul 2004 04:03:23 +0000 (04:03 +0000)
committerhackbard <hackbard>
Sun, 25 Jul 2004 04:03:23 +0000 (04:03 +0000)
doc/CHANGELOG
misc/hdw-tools/hdw-get

index f3b1504d1bbf4084f40f72ce388153e6d71e56fd..da471acf92c848d55e5fbe454b23523ba4c3f2e4 100644 (file)
@@ -1,5 +1,6 @@
 *) 2004-07-25
 
+- improved info/dir cleanup whicle remove in hdw-get
 - added CROSSBUILD file - just some guidelines for hacking it the hdw way
 - fixed unrealircd package
 - do not build linux mandocs
index b4b180d82b44bfd33ef78ba57c4a397bd30795c0..dd6595e6e59161897fe78473872333f861b77351 100644 (file)
@@ -84,7 +84,9 @@ if [ "$remove" = "1" ] ; then
                         awk -F/ '{ print $4 }'`; do
                info_o=`echo $info_obj | sed 's/.info//'`
                [ "$verbose" ] && echo "deleting $info_o from info/dir"
-               grep -v \($info_o\)\. /tmp/.hdw-get/dir > /tmp/.hdw-get/dir~
+               grep -v \($info_o\)\. /tmp/.hdw-get/dir | \
+               grep -v ^$package\ info\ -\ added\ by\ hdw > \
+               /tmp/.hdw-get/dir~
                mv /tmp/.hdw-get/dir~ /tmp/.hdw-get/dir
        done
        fi