diff options
author | 2006-06-17 03:58:28 +0000 | |
---|---|---|
committer | 2006-06-17 03:58:28 +0000 | |
commit | aaca1ee2d7a3e138a8d53eed365c489c512213fa (patch) | |
tree | bca076a9dfedd3bd29d20580e4c53a7fa18cf629 /scripts | |
parent | Whitespace cleanup (diff) | |
download | sunrise-reviewed-aaca1ee2d7a3e138a8d53eed365c489c512213fa.tar.gz sunrise-reviewed-aaca1ee2d7a3e138a8d53eed365c489c512213fa.tar.bz2 sunrise-reviewed-aaca1ee2d7a3e138a8d53eed365c489c512213fa.zip |
scripts/portdupe - ignores CVS dirs, uses category list, thanks to tcort for helping
svn path=/sunrise/; revision=90
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/portdupe | 6 |
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="" |