From 1b1cbce8ef1bc79896e9f645a35e767b19f2b2e7 Mon Sep 17 00:00:00 2001 From: hackbard Date: Sun, 25 Jul 2004 04:03:23 +0000 Subject: [PATCH] imprved info/dir issue --- doc/CHANGELOG | 1 + misc/hdw-tools/hdw-get | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.20.1