summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2010-05-04 03:11:19 +0000
committerJeremy Olexa <darkside@gentoo.org>2010-05-04 03:11:19 +0000
commitb1ccf1ef5988586818b44ed6c392152d2989f0b3 (patch)
tree8cae338e67421209a89a32f6ddce20809b487087
parentAdd EAPI2 phases to completion, patch by Jeroen Roovers in bug 297419 (diff)
downloadgentoo-bashcomp-b1ccf1ef5988586818b44ed6c392152d2989f0b3.tar.gz
gentoo-bashcomp-b1ccf1ef5988586818b44ed6c392152d2989f0b3.tar.bz2
gentoo-bashcomp-b1ccf1ef5988586818b44ed6c392152d2989f0b3.zip
Fix equery check completion. bug 298919, patch by Jacek Sowiński
svn path=/trunk/; revision=96
-rw-r--r--gentoo12
1 files changed, 9 insertions, 3 deletions
diff --git a/gentoo b/gentoo
index 06fea2f..a1e0d2e 100644
--- a/gentoo
+++ b/gentoo
@@ -1251,9 +1251,15 @@ _equery()
# Only complete if the previous entry on the command line is not
# a package name.
if [[ ${prev} == ${mode} ]]; then
- # Only installed packages can have their integrity verified.
- _pkgname -I $cur
- COMPREPLY=($(compgen -W "${COMPREPLY[@]} --help" -- ${cur}))
+ case $cur in
+ -*)
+ COMPREPLY=($(compgen -W "${COMPREPLY[@]} --help" -- ${cur}))
+ ;;
+ *)
+ # Only installed packages can have their integrity verified.
+ _pkgname -I $cur
+ ;;
+ esac
fi
;;
s?(ize))