]> git.pld-linux.org Git - packages/bash-completion.git/blobdiff - builder.bash-completion
drop completions provided by NetworkManager
[packages/bash-completion.git] / builder.bash-completion
index da7f04c1ed792aa2847ec86f3c3ed2585868c8aa..0b081c8d960d8741494c83103cfbbf196c64b3c0 100644 (file)
@@ -23,15 +23,20 @@ _builder()
 
        case $prev in
        -r)
-               local spec
-               _builder_get_spec
                COMPREPLY=( $( compgen -W '$( git tag )' -- "$cur" ) )
                return 0
                ;;
        --with|--without)
-               local spec
+               local spec bconds
                _builder_get_spec
-               $1 -nn -ncs --show-avail-bconds $spec
+               bconds=$(
+                       awk '
+                       /^%changelog/ { exit }
+                       /^%bcond_with/{
+                               print $2
+                       }' $spec
+               )
+               COMPREPLY=( $( compgen -W "$bconds" -- "$cur" ) )
                return 0
                ;;
        esac
This page took 0.094621 seconds and 4 git commands to generate.