From: hackbard Date: Sat, 24 Jul 2004 15:24:41 +0000 (+0000) Subject: bugfixed hdw-get X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=c60232cbf492a1264c05ceb841026dd9043673ae;p=hdw-linux%2Fhdw-linux.git bugfixed hdw-get --- diff --git a/misc/hdw-tools/hdw-get b/misc/hdw-tools/hdw-get index 5cb2e40..b4b180d 100644 --- a/misc/hdw-tools/hdw-get +++ b/misc/hdw-tools/hdw-get @@ -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//'`