From: hackbard Date: Sun, 25 Jul 2004 04:03:23 +0000 (+0000) Subject: imprved info/dir issue X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b1cbce8ef1bc79896e9f645a35e767b19f2b2e7;p=hdw-linux%2Fhdw-linux.git imprved info/dir issue --- diff --git a/doc/CHANGELOG b/doc/CHANGELOG index f3b1504..da471ac 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -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 diff --git a/misc/hdw-tools/hdw-get b/misc/hdw-tools/hdw-get index b4b180d..dd6595e 100644 --- a/misc/hdw-tools/hdw-get +++ b/misc/hdw-tools/hdw-get @@ -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