--- qpkg.orig 2003-11-11 17:18:03.812113800 +0000 +++ qpkg 2003-11-11 17:16:06.308976992 +0000 @@ -58,6 +58,10 @@ inst=y ;; + -fi|--find-inj) + finj=y + ;; + -I|--installed) inst=y ;; @@ -175,7 +179,8 @@ ${BR}Package Selection: ${BL}-f, --find-file${NO}${T}finds package that owns file - ${BL}-fp, --find-pattern${NO}${T}finds to package that owns file matching ** + ${BL}-fp, --find-pattern${NO}${T}finds package that owns file matching ** + ${BL}-fi, --find-inj${NO}${T}finds packages that are injected stubs ${BL}-m, --masked${NO}${T}${T}Include${YL} only${NO} masked packages ${BL}-n, --non-masked${NO}${T}Include${YL} only${NO} non-masked packages ${BL}-I, --installed${NO}${T}Include${YL} only${NO} installed packages @@ -342,6 +347,19 @@ fi fi +if [ "${finj}" ]; then + # injected stubs find mode; list all injected stubs + # from /var/db/pkg by counting # of files + for D in /var/db/pkg/*/*; do + if [ ! -f ${D}/CONTENTS ] ; then + dir=$(echo $D | cut -d'/' -f5) + pkg=$(echo $D | cut -d'/' -f6-) + echo -e ${BR}${dir}/${CY}${pkg}${NO} + fi + done + exit +fi + X="\([^/]*\)" for p in ${ipak} ${upak} -;do