--- qpkg 2004-02-28 19:56:30.000000000 +0100 +++ qpkg 2004-02-28 19:55:38.000000000 +0100 @@ -227,8 +227,6 @@ exit fi -#For the --dups switch only -if [ "${dups}" ]; then if [ "${grepmask}" ]; then mask=`python -c 'import portage; print portage.settings["ACCEPT_KEYWORDS"];' 2> /dev/null` echo -e "Currently accepted keywords: ${BL}${mask}${NO}" @@ -236,6 +234,9 @@ mask=`echo ${mask} | perl -pe 's/\s+/|/'` fi +#For the --dups switch only +if [ "${dups}" ]; then + #First dig out the list of packages with duplicates find /var/db/pkg/ -iname "*${arg}*.ebuild" 2> /dev/null > /tmp/qpkg.lst dups=`cat /tmp/qpkg.lst | cut -f7 -d/ |