]> Pileus Git - ~andy/sunrise/commitdiff
scripts/portdupe: Fix category checking.
authorDavid Shakaryan <omp@gentoo.org>
Sat, 11 Nov 2006 23:42:14 +0000 (23:42 +0000)
committerDavid Shakaryan <omp@gentoo.org>
Sat, 11 Nov 2006 23:42:14 +0000 (23:42 +0000)
svn path=/sunrise/; revision=1895

scripts/portdupe

index 88e717aa88b7ac15616572aa8d010828250f7060..697c3fc37cc4f7c0ed3dc68b4f52b4054725c968 100755 (executable)
@@ -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=""