summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Shakaryan <omp@gentoo.org>2006-11-11 23:42:14 +0000
committerDavid Shakaryan <omp@gentoo.org>2006-11-11 23:42:14 +0000
commit66e2d31b570c7587b0226af0748de54bd298a11e (patch)
tree015be164e0e6696ac353a8c3d164035df47b1f5d /scripts
parentx11-plugins/cairo-clock: Removing as it has been added to official tree. (x11... (diff)
downloadsunrise-66e2d31b570c7587b0226af0748de54bd298a11e.tar.gz
sunrise-66e2d31b570c7587b0226af0748de54bd298a11e.tar.bz2
sunrise-66e2d31b570c7587b0226af0748de54bd298a11e.zip
scripts/portdupe: Fix category checking.
svn path=/sunrise/; revision=1895
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/portdupe6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/portdupe b/scripts/portdupe
index 88e717aa8..697c3fc37 100755
--- a/scripts/portdupe
+++ b/scripts/portdupe
@@ -1,6 +1,6 @@
#!/bin/bash
#
-# Copyright 2006 David Shakaryan <d@ompty.org>
+# 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.
@@ -12,8 +12,8 @@ if [ $1 ]; then
fi
# Checking, displaying, etc.
-for PACKAGE in *-*/*; do
- if [[ -d ${PORTDIR}/${PACKAGE} ]] && [[ $(basename ${PACKAGE}) != "CVS" ]] && echo ${PACKAGE} | grep -qv ${PORTDIR}/profiles/categories; then
+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=""
OVERPACK_VERS=""