Author: glen                         Date: Tue Mar  6 21:07:07 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- ungh, --verify args are offered

---- Files affected:
SOURCES:
   bash-completion-poldek.sh (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SOURCES/bash-completion-poldek.sh
diff -u SOURCES/bash-completion-poldek.sh:1.6 
SOURCES/bash-completion-poldek.sh:1.7
--- SOURCES/bash-completion-poldek.sh:1.6       Tue Mar  6 20:58:44 2007
+++ SOURCES/bash-completion-poldek.sh   Tue Mar  6 22:07:02 2007
@@ -28,13 +28,21 @@
                COMPREPLY=( $( poldek -l | awk "/^$cur/{print \$1}" ) )
                return 0
                ;;
-       --verify)
-               COMPREPLY=( $( compgen -W 'deps conflicts file-conflicts 
file-orphans file-missing-deps' -- $cur ) )
-               return 0
-               ;;
        esac
 
        case "$cur" in
+       --verify*=*,*)
+               local p=${cur#--verify=*,}
+               p=${p//\\} # those backslashes propagate!!! -- kill them
+               # somewhy bash escapes equal sign, so we must match the 
backslash too
+               COMPREPLY=( $( compgen -P "${p%,*}," -W 'deps conflicts 
file-conflicts file-orphans file-missing-deps' -- "${cur##*,}" ) )
+               return 0
+               ;;
+       --verify*)
+               # somewhy bash escapes equal sign, so we must match the 
backslash too
+               COMPREPLY=( $( compgen -P --verify= -W 'deps conflicts 
file-conflicts file-orphans file-missing-deps' -- "${cur#--verify*=}" ) )
+               return 0
+               ;;
        --*)
                COMPREPLY=( $( compgen -W '
                --mkidx --makeidx --mt --nocompress --nodesc --nodiff 
--notimestamp
@@ -45,7 +53,7 @@
                --dump --dumpn --fetch --follow --force --fresh --greedy --hold
                --ignore --justdb --mercy --nodeps --nohold --noignore 
--nofollow
                --parsable-tr-summary --pm-force --pm-nodeps --pmopt 
--promoteepoch
-               --uniq --test --erase --greedy --nodeps --nofollow --test 
--verify
+               --uniq --test --erase --greedy --nodeps --nofollow --test 
--verify=
                --priconf --split --split-out --ask --cachedir --cmd --conf 
--log
                --noask --noconf --pmcmd --runas --shell --skip-installed 
--sudocmd
                --upconf --help --usage --version
@@ -59,5 +67,6 @@
 
        return 0
 }
-complete -F _poldek $filenames poldek
+complete -F _poldek $nospace $filenames poldek
+
 }
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/bash-completion-poldek.sh?r1=1.6&r2=1.7&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to