-
[hdw-linux/hdw-linux.git] / misc / hdw-tools / hdw-get
index b4b180d..0f785fb 100644 (file)
@@ -43,7 +43,7 @@ if [ -f /etc/hdw-get.conf ] ; then
                echo "adjust /etc/hdw-get.conf file"
                exit
        else
-               echo "hdw-get.conf file looks good ..."
+               [ "$verbose" ] && echo "hdw-get.conf file looks good ..."
        fi
 else
        echo "/etc/hdw-get.conf file not found, aborting"
@@ -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