summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Shakaryan <omp@gentoo.org>2006-06-17 03:58:28 +0000
committerDavid Shakaryan <omp@gentoo.org>2006-06-17 03:58:28 +0000
commitaaca1ee2d7a3e138a8d53eed365c489c512213fa (patch)
treebca076a9dfedd3bd29d20580e4c53a7fa18cf629 /scripts/portdupe
parentWhitespace cleanup (diff)
downloadsunrise-aaca1ee2d7a3e138a8d53eed365c489c512213fa.tar.gz
sunrise-aaca1ee2d7a3e138a8d53eed365c489c512213fa.tar.bz2
sunrise-aaca1ee2d7a3e138a8d53eed365c489c512213fa.zip
scripts/portdupe - ignores CVS dirs, uses category list, thanks to tcort for helping
svn path=/sunrise/; revision=90
Diffstat (limited to 'scripts/portdupe')
-rwxr-xr-xscripts/portdupe6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/portdupe b/scripts/portdupe
index 35e0a5679..98f8051c6 100755
--- a/scripts/portdupe
+++ b/scripts/portdupe
@@ -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=""