diff options
author | Jeremy Olexa <darkside@gentoo.org> | 2010-05-04 03:11:19 +0000 |
---|---|---|
committer | Jeremy Olexa <darkside@gentoo.org> | 2010-05-04 03:11:19 +0000 |
commit | b1ccf1ef5988586818b44ed6c392152d2989f0b3 (patch) | |
tree | 8cae338e67421209a89a32f6ddce20809b487087 | |
parent | Add EAPI2 phases to completion, patch by Jeroen Roovers in bug 297419 (diff) | |
download | gentoo-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-- | gentoo | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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)) |