Write out the new repo on install.
We write the repo to a lock file repo, and once the RPMs are installed
we rename() the lock repo back in place.
3 COMPREPLY=($(IFS=: compgen -S' ' -W "list-requires:list-provides:list-files:list-file-packages:list-package-files:what-requires:what-provides:import-yum:import-rpmdb:validate:update:diff" -- $1))
9 COMPREPLY=($(./razor list "$1*" | while read p; do echo "$p "; done))
13 COMPREPLY=($(./razor list-files "$1*"))
17 COMPREPLY=($(compgen -W "$(./razor list-requires)" -- $1))
21 COMPREPLY=($(compgen -W "$(./razor list-provides)" -- $1))
25 local cur="${COMP_WORDS[COMP_CWORD]}"
27 if [ $COMP_CWORD = 1 ]; then
30 case "${COMP_WORDS[1]}" in
31 list-requires|list-provides|list-package-files)
32 __razor_packages $cur ;;
33 list-files|list-file-packages) __razor_files $cur ;;
34 what-requires) __razor_requires $cur ;;
35 what-provides) __razor_provides $cur ;;
40 complete -o nospace -F __razor razor