From c60232cbf492a1264c05ceb841026dd9043673ae Mon Sep 17 00:00:00 2001 From: hackbard Date: Sat, 24 Jul 2004 15:24:41 +0000 Subject: [PATCH] bugfixed hdw-get --- misc/hdw-tools/hdw-get | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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//'` -- 2.20.1