]> Pileus Git - ~andy/sunrise/blobdiff - scripts/portdupe
dev-db/dabo: Adding ~amd64 keyword, fixing deps, fixing distutils usage
[~andy/sunrise] / scripts / portdupe
index f9e4d3f374a10049eaf973caec7cd10ec03b9900..fd03f84383bf653fda2c48a608628c32fa12aebf 100755 (executable)
@@ -3,8 +3,7 @@
 # Copyright 2006 David Shakaryan <omp@gentoo.org>
 # Distributed under the terms of the GNU General Public License v2
 
-# Change portage tree directory if you have it elsewhere.
-PORTDIR="/usr/portage"
+PORTDIR="$(portageq envvar PORTDIR)"
 
 # If an argument is present, use it as the overlay directory.
 if [ $1 ]; then
@@ -12,7 +11,7 @@ if [ $1 ]; then
 fi
 
 # Checking, displaying, etc.
-for PACKAGE in *-*/*; do
+for PACKAGE in */*; do
        if [[ -d ${PORTDIR}/${PACKAGE} ]] && [[ $(basename ${PACKAGE}) != "CVS" ]] && grep -q $(dirname ${PACKAGE}) ${PORTDIR}/profiles/categories; then
                # Reset versions from last package checked.
                PORTPACK_VERS=""