]> Pileus Git - ~andy/sunrise/commitdiff
scripts/portdupe - ignores CVS dirs, uses category list, thanks to tcort for helping
authorDavid Shakaryan <omp@gentoo.org>
Sat, 17 Jun 2006 03:58:28 +0000 (03:58 +0000)
committerDavid Shakaryan <omp@gentoo.org>
Sat, 17 Jun 2006 03:58:28 +0000 (03:58 +0000)
svn path=/sunrise/; revision=90

scripts/portdupe

index 35e0a567932fcd80b65c7a3148a3b002ff7a6910..98f8051c6e42512fe1cbd1ce33906993d6e41a92 100755 (executable)
@@ -4,7 +4,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 # Change portage tree directory if you have it elsewhere.
-PORTDIR="/usr/portage/"
+PORTDIR="/usr/portage"
 
 # If an argument is present, use it as the overlay directory.
 if [ $1 ]; then
@@ -12,8 +12,8 @@ if [ $1 ]; then
 fi
 
 # Checking, displaying, etc.
-for PACKAGE in *-*/*; do
-       if [ -d ${PORTDIR}/${PACKAGE} ]; then
+for PACKAGE in */*; do
+       if [[ -d ${PORTDIR}/${PACKAGE} ]] && [[ $(basename ${PACKAGE}) != "CVS" ]] && echo ${PACKAGE} | grep -qv ${PORTDIR}/profiles/categories; then
                # Reset versions from last package checked.
                PORTPACK_VERS=""
                OVERPACK_VERS=""