Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298919 - [PATCH]app-shells/gentoo-bashcomp: completion for 'equery check' does not work
Summary: [PATCH]app-shells/gentoo-bashcomp: completion for 'equery check' does not work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2009-12-29 22:14 UTC by Jacek Sowiński
Modified: 2010-06-13 02:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for 'equery chec(k)' completion (equery-check_completion.patch,818 bytes, patch)
2009-12-29 22:50 UTC, Jacek Sowiński
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jacek Sowiński 2009-12-29 22:14:34 UTC
Looks like there is some lack of necessary code.

Take a look and compare:

    k|check)
        # 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}))
        fi
        ;;

versus:

    s?(ize))
        # Only complete if the previous entry on the command line is not
        # a package name.
        if [[ ${prev} == ${mode} || ${prev:0:1} == "-" ]]; then
        case $cur in
            -*)
            COMPREPLY=($(compgen -W "--help -b --bytes" -- $cur))
            ;;
            *)
            # Only installed packages can have their size calculated.
            _pkgname -I $cur
            ;;
        esac
        fi
        ;;

Patch in a moment ;)
Comment 1 Jacek Sowiński 2009-12-29 22:50:04 UTC
Created attachment 214584 [details, diff]
Patch for 'equery chec(k)' completion
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-05-04 03:11:34 UTC
Thanks, applied to trunk.
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-06-13 02:29:22 UTC
Thanks again for the patches. 20100613 is in the tree!

+  13 Jun 2010; Jeremy Olexa <darkside@gentoo.org>
+  +gentoo-bashcomp-20100613.ebuild:
+  Version bump to fix bugs: 298919, 298916, 301582, 269498, 287092. Add
+  Gentoo Prefix support.