From 377c25f70549073dbe7adc680ed0b863120c2a45 Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Thu, 13 Mar 2008 22:39:19 +0000 Subject: [PATCH] Add --info-installed flag to euse. Thanks to Andreas Waidler for providing the patch svn path=/; revision=480 --- trunk/ChangeLog | 4 ++ trunk/src/euse/euse | 149 ++++++++++++++++++++++++++++++++---------- trunk/src/euse/euse.1 | 5 +- 3 files changed, 123 insertions(+), 35 deletions(-) diff --git a/trunk/ChangeLog b/trunk/ChangeLog index 3996886..fd06cbb 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,3 +1,7 @@ +2008-03-13: Paul Varner + * euse: Add --info-installed option from patch provided by Andreas + Waidler. (Bug 212573) + 2008-03-13: Paul Varner * revdep-rebuild: Fix trying to emerge an empty list of packages. (Bug 213294) diff --git a/trunk/src/euse/euse b/trunk/src/euse/euse index 8814e28..3b73ec0 100755 --- a/trunk/src/euse/euse +++ b/trunk/src/euse/euse @@ -23,15 +23,16 @@ parse_arguments() { fi while [ -n "${1}" ]; do case "${1}" in - -h | --help) MODE="showhelp";; - -v | --version) MODE="showversion";; - -i | --info) MODE="showdesc";; - -l | --local) SCOPE="local";; - -g | --global) SCOPE="global";; - -a | --active) MODE="showflags";; - -E | --enable) MODE="modify"; ACTION="add";; - -D | --disable) MODE="modify"; ACTION="remove";; - -P | --prune) MODE="modify"; ACTION="prune";; + -h | --help) MODE="showhelp";; + -v | --version) MODE="showversion";; + -i | --info) MODE="showdesc";; + -I | --info-installed) MODE="showinstdesc";; + -l | --local) SCOPE="local";; + -g | --global) SCOPE="global";; + -a | --active) MODE="showflags";; + -E | --enable) MODE="modify"; ACTION="add";; + -D | --disable) MODE="modify"; ACTION="remove";; + -P | --prune) MODE="modify"; ACTION="prune";; -*) echo "ERROR: unknown option ${1} specified." echo @@ -81,34 +82,40 @@ check_sanity() { } showhelp() { - echo "${PROGRAM_NAME} v${PROGRAM_VERSION}" - echo - echo "Syntax: ${PROGRAM_NAME}