about summary refs log tree commit diff
path: root/Completion/Mandrake/Command
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2002-01-16 16:29:51 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2002-01-16 16:29:51 +0000
commitd7822305b4a20ba09ef0c9eb0c6c9bf697c1ee87 (patch)
tree1f21ac9faf956d67f24e2005b82a42264a27f535 /Completion/Mandrake/Command
parent8476aa7fc2faea453c3e07dae2e58535fa2a7086 (diff)
downloadzsh-d7822305b4a20ba09ef0c9eb0c6c9bf697c1ee87.tar.gz
zsh-d7822305b4a20ba09ef0c9eb0c6c9bf697c1ee87.tar.xz
zsh-d7822305b4a20ba09ef0c9eb0c6c9bf697c1ee87.zip
16461: a number of minor completion function updates
Diffstat (limited to 'Completion/Mandrake/Command')
-rw-r--r--Completion/Mandrake/Command/_urpmi10
1 files changed, 5 insertions, 5 deletions
diff --git a/Completion/Mandrake/Command/_urpmi b/Completion/Mandrake/Command/_urpmi
index d78c1acaf..76a5375b6 100644
--- a/Completion/Mandrake/Command/_urpmi
+++ b/Completion/Mandrake/Command/_urpmi
@@ -11,12 +11,12 @@ _urpmi_cache_policy() {
 }
     
 _urpmi() {
-    local state context line ret=1
+    local expl state curcontext="$curcontext" line ret=1
     typeset -A opt_args
 
     case "$service" in
 	urpmi.addmedia )
-	    _arguments -A '-*' \
+	    _arguments -C -A '-*' \
 		"(--wget)--curl[use curl to retrieve distant files]" \
 		"(:)--distrib[automatically create all media from an installation medium]:media URL:->media_url" \
 		"--update[mark as update media]" \
@@ -31,13 +31,13 @@ _urpmi() {
 	     && ret=0
 	;;
 	urpmi.removemedia )
-	    _arguments -A '-*' \
+	    _arguments -C -A '-*' \
 		"(:)-a[select all media]" \
 		"(-a)"{,\*}": :->urpmi_media" \
 	     && ret=0
 	;;
 	urpmi.update )
-	    _arguments -A '-*' \
+	    _arguments -C -A '-*' \
 		"(--wget)--curl[use curl to retrieve distant files]" \
 		"(--curl)--wget[use wget to retrieve distant files]" \
 		"(:)-a[select all non-removable media]" \
@@ -48,7 +48,7 @@ _urpmi() {
 	     && ret=0
 	;;
 	urpmi )
-	    _arguments -A '-*' \
+	    _arguments -C -A '-*' \
 		"(: -)--help[print usage information]" \
 		"(--help)--allow-medium-change[allow change of removable media]" \
 		"(--help)--auto[do not ask any questions]" \