bugfixed hdw-get
authorhackbard <hackbard>
Sat, 24 Jul 2004 15:24:41 +0000 (15:24 +0000)
committerhackbard <hackbard>
Sat, 24 Jul 2004 15:24:41 +0000 (15:24 +0000)
misc/hdw-tools/hdw-get

index 5cb2e40..b4b180d 100644 (file)
@@ -160,10 +160,11 @@ elif [ "$install" = "1" ] ; then
        fi
 
        # merging info/dir file
-       fl_file=`ls -A $inst_root/var/adm/flists/$package-[0-9]* | tail -1`
+       pkg=`basename $package | sed 's/.tar.bz2//'`
+       fl_file=`ls -A $inst_root/var/adm/flists/$pkg-[0-9]* | tail -1`
        if [ -n "`grep usr/share/info/dir $fl_file`" ] ; then
                echo "" >> /tmp/.hdw-get/dir
-               echo "$package info - added by hdw `date`" >> /tmp/.hdw-get/dir
+               echo "$pkg info - added by hdw `date`" >> /tmp/.hdw-get/dir
                for info_obj in `grep 'usr/share/info/.*.info' $fl_file | \
                                        awk -F/ '{ print $4 }'`; do
                        info_o=`echo $info_obj | sed 's/.info//'`