about summary refs log tree commit diff
path: root/Completion/Mandrake/Command
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-11-14 11:56:52 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-11-14 11:56:52 +0000
commitb58339667420ef41df027ce400979d602082072e (patch)
treefb332866dca1f0a6095f6ba3292b49837a035420 /Completion/Mandrake/Command
parent18c6d88d2fa1ff8128edbd10274f7ddb41a9ef4e (diff)
downloadzsh-b58339667420ef41df027ce400979d602082072e.tar.gz
zsh-b58339667420ef41df027ce400979d602082072e.tar.xz
zsh-b58339667420ef41df027ce400979d602082072e.zip
19244: various completion function fixes and updates
Diffstat (limited to 'Completion/Mandrake/Command')
-rw-r--r--Completion/Mandrake/Command/_urpmi12
1 files changed, 7 insertions, 5 deletions
diff --git a/Completion/Mandrake/Command/_urpmi b/Completion/Mandrake/Command/_urpmi
index 7f9387f91..2376b09de 100644
--- a/Completion/Mandrake/Command/_urpmi
+++ b/Completion/Mandrake/Command/_urpmi
@@ -30,7 +30,7 @@ _urpmi_rpms() {
   _tags rpms files
 
   while _tags; do
-    if _requested rpms expl 'urpmi RPMs'; then
+    if _requested rpms expl 'urpmi RPM'; then
       local -a synthesis pkgs
       synthesis=(/var/lib/urpmi/synthesis.*(N))
       if [[ $#synthesis -gt 0 ]]; then
@@ -43,11 +43,13 @@ _urpmi_rpms() {
       fi
     fi
 
-    _requested files expl '(S)RPM files' \
+    _requested files expl '(S)RPM file' \
       _files -g '*.(#i)rpm' && ret=0
+  
+    (( ret )) || break
   done
 
-  return $ret
+  return ret
 }
 
 _urpmi_media_url() {
@@ -94,7 +96,7 @@ _urpmi() {
 	"(--distrib):name of media: " \
 	"(--distrib):media URL:_urpmi_media_url" \
 	"(--distrib): :(with)" \
-	"(--distrib):relative path to hdlist file: " \
+	"(--distrib):relative path to hdlist file" \
        && ret=0
     ;;
     urpmi.removemedia )
@@ -161,7 +163,7 @@ _urpmi() {
 	"(--help -h)-r[print version and release too with name]" \
 	"(--help -h)-u[remove package if a better version is already installed]" \
 	"(--help -h)-v[verbose mode]" \
-	"(--help -h)*:urpmi package name: " \
+	"(--help -h)*:urpmi package name" \
      && ret=0
     ;;
   esac