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 f3b1504..da471ac 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 b4b180d..dd6595e 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