Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 431578 | Differences between
and this patch

Collapse All | Expand All

(-)a/gentoo (-4 / +3 lines)
Lines 104-110 _pkgname() Link Here
104
            # When we've completed most of the name, also display the version for
104
            # When we've completed most of the name, also display the version for
105
            # possible completion.
105
            # possible completion.
106
            if [[ ${#COMPREPLY[@]} -le 1 || ${cur:${#cur}-1:1} == "-" ]] && 
106
            if [[ ${#COMPREPLY[@]} -le 1 || ${cur:${#cur}-1:1} == "-" ]] && 
107
                    [[ ${cur} != */ ]]; then
107
                    [[ ${cur} != */ && ${prev} == '=' ]]; then
108
            # The portage cache is appropriate to complete specific versions from.
108
            # The portage cache is appropriate to complete specific versions from.
109
            COMPREPLY=(${COMPREPLY[@]} $(\
109
            COMPREPLY=(${COMPREPLY[@]} $(\
110
                        for pd in ${portdir} ; do \
110
                        for pd in ${portdir} ; do \
Lines 156-162 _pkgname() Link Here
156
    esac
156
    esac
157
    # 'equery' wants an '=' in front of specific package versions.
157
    # 'equery' wants an '=' in front of specific package versions.
158
    # Add it if there is only one selected package and it isn't there already.
158
    # Add it if there is only one selected package and it isn't there already.
159
    if [[ ${#COMPREPLY[@]} == 1 && ${COMP_WORDS[COMP_CWORD]:0:1} != "=" ]]
159
    if [[ ${#COMPREPLY[@]} == 1 && ${prev} != "=" ]]
160
    then
160
    then
161
        [[ -z "${only}" ]] && COMPREPLY=("="$COMPREPLY)
161
        [[ -z "${only}" ]] && COMPREPLY=("="$COMPREPLY)
162
    fi
162
    fi
Lines 1164-1170 _equery() Link Here
1164
    f?(iles))
1164
    f?(iles))
1165
        # Only complete if the previous entry on the command line is not
1165
        # Only complete if the previous entry on the command line is not
1166
        # a package name.
1166
        # a package name.
1167
        if [[ ${prev} == ${mode} || ${prev:0:1} == "-" ]]; then
1167
        if [[ ${prev} == ${mode} || ${prev:0:1} == "-" || ${prev} == '=' ]]; then
1168
            # --filter=<list>: completion of the files types list
1168
            # --filter=<list>: completion of the files types list
1169
            if [[ ${prev} == "-f" || "${cur}" == "--filter="* ]] ; then
1169
            if [[ ${prev} == "-f" || "${cur}" == "--filter="* ]] ; then
1170
                COMPREPLY=($(_list_compgen "${cur#--filter=}" , \
1170
                COMPREPLY=($(_list_compgen "${cur#--filter=}" , \
1171
- 

Return to bug 431578