aboutsummaryrefslogtreecommitdiff
path: root/bash-completion
diff options
context:
space:
mode:
authorAvatar Mike Kelly <pioto@pioto.org> 2007-07-23 19:29:22 +0000
committerAvatar Mike Kelly <pioto@pioto.org> 2007-07-23 19:29:22 +0000
commitd47902b6474b2c42ebf6338384cf2ffae3ea69d2 (patch)
tree79431058a9b5a6569e93928b8007c5d8015a5ac3 /bash-completion
parentffa0ece20ac179541743ee9a7cf4a54c0733e39f (diff)
downloadpaludis-d47902b6474b2c42ebf6338384cf2ffae3ea69d2.tar.gz
paludis-d47902b6474b2c42ebf6338384cf2ffae3ea69d2.tar.xz
Allow specifying specific repositories for the --regenerate-*-cache actions. Fixes: ticket:251
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion/paludis17
1 files changed, 11 insertions, 6 deletions
diff --git a/bash-completion/paludis b/bash-completion/paludis
index 9e42bdb..8f9bb4e 100644
--- a/bash-completion/paludis
+++ b/bash-completion/paludis
@@ -127,9 +127,10 @@ _paludis() {
--category \
--package \
--set"
- regen_opts=""
+ regen_news_opts=""
+ regen_repos_opts=""
- all_opts="${action_opts} ${general_opts} ${query_opts} ${install_opts} ${uninstall_opts} ${sync_opts} ${report_opts} ${contents_opts} ${owner_opts} ${version_query_opts} ${variable_query_opts} ${list_opts} ${regen_opts}"
+ all_opts="${action_opts} ${general_opts} ${query_opts} ${install_opts} ${uninstall_opts} ${sync_opts} ${report_opts} ${contents_opts} ${owner_opts} ${version_query_opts} ${variable_query_opts} ${list_opts} ${regen_news_opts} ${regen_repos_opts}"
local x
for x in "${COMP_WORDS[@]}" ; do
@@ -186,8 +187,12 @@ _paludis() {
action="list"
break
;;
- --update-news|--regenerate-installed-cache|--regenerate-installable-cache)
- action="regen"
+ --update-news)
+ action="regen_news"
+ break
+ ;;
+ --regenerate-installed-cache|--regenerate-installable-cache)
+ action="regen_repos"
break
;;
esac
@@ -303,11 +308,11 @@ _paludis() {
# ;;
*)
case "${action}" in
- sync)
+ sync|regen_repos)
COMPREPLY=($(compgen -W "$(_paludis_dolist repositories)" -- "${cur}"))
return 0
;;
- report|info|list|regen)
+ report|info|list|regen_news)
return 0
;;
owner)