|
@@ -22,7 +22,7 @@ _vbuilder()
|
|
first="${COMP_WORDS[1]}"
|
|
first="${COMP_WORDS[1]}"
|
|
|
|
|
|
## The basic options we'll complete.
|
|
## The basic options we'll complete.
|
|
- options="--version --arch --dist-upgrade --unionfs --target --with-compat32"
|
|
|
|
|
|
+ options="--version --arch --category --dist-upgrade --unionfs --target --with-compat32"
|
|
actions="clean build build-rpm install-rpm remove-rpm show-info"
|
|
actions="clean build build-rpm install-rpm remove-rpm show-info"
|
|
opts="$options $actions"
|
|
opts="$options $actions"
|
|
|
|
|
|
@@ -46,6 +46,11 @@ _vbuilder()
|
|
COMPREPLY=( $(compgen -W "${running}" -- "${cur}") )
|
|
COMPREPLY=( $(compgen -W "${running}" -- "${cur}") )
|
|
;;
|
|
;;
|
|
|
|
|
|
|
|
+ --category)
|
|
|
|
+ local running="main main,proposed-updates main,plus main,plus,nonfree"
|
|
|
|
+ COMPREPLY=( $(compgen -W "${running}" -- "${cur}") )
|
|
|
|
+ ;;
|
|
|
|
+
|
|
--target)
|
|
--target)
|
|
local running="$(cat /usr/lib/rpm/rpmrc | grep arch_canon: | sed -e "s/arch_canon:[[:blank:]]*\(.*\):.*/\1/")"
|
|
local running="$(cat /usr/lib/rpm/rpmrc | grep arch_canon: | sed -e "s/arch_canon:[[:blank:]]*\(.*\):.*/\1/")"
|
|
COMPREPLY=( $(compgen -W "${running}" -- "${cur}") )
|
|
COMPREPLY=( $(compgen -W "${running}" -- "${cur}") )
|