--- qpkg.orig 2003-12-17 11:58:42.000000000 -0600 +++ qpkg 2003-12-17 14:37:26.605520160 -0600 @@ -314,10 +314,7 @@ # installed packages if [ ! "${uninst}" ]; then - ipak=`find /var/db/pkg/ -iname "*.ebuild" 2>/dev/null` - if [[ ${group} != "*" ]]; then - ipak=`echo ${ipak}|sed -e "s: :\n:g"|grep ${group}` - fi + ipak=`find /var/db/pkg/${group} -iname "*.ebuild" 2>/dev/null` if [ ${arg} ]; then # avoid ${arg}="db" from pulling in every installed package temp="/var/db/pkg/.*${arg}" @@ -329,10 +326,7 @@ fi # not installed packages (yet:-) if [ ! "${inst}" ]; then - upak=`find /usr/portage/ -iname "*.ebuild" 2>/dev/null|grep -v --regex="/usr/portage/[^/]*\.ebuild"` - if [[ ${group} != "*" ]]; then - upak=`echo ${upak}|sed -e "s: :\n:g"|grep ${group}` - fi + upak=`find /usr/portage/${group} -iname "*.ebuild" 2>/dev/null|grep -v --regex="/usr/portage/[^/]*\.ebuild"` if [ ${arg} ]; then upak=`echo ${upak}|sed -e "s: :\n:g"|grep -i ${arg}` fi