From: Borsenkow Andrej <Andrej.Borsenkow@mow.siemens.ru>
To: "'Chmouel Boudjnah'" <chmouel@mandrakesoft.com>
Cc: "'Zsh hackers list'" <zsh-workers@sunsite.dk>
Subject: RE: PATCH: _urpmi update
Date: Mon, 14 Jan 2002 13:23:49 +0300 [thread overview]
Message-ID: <000f01c19ce5$8e8cf1d0$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <m366658d0o.fsf@giants.mandrakesoft.com>
[-- Attachment #1: Type: text/plain, Size: 475 bytes --]
> Borsenkow Andrej <Andrej.Borsenkow@mow.siemens.ru> writes:
>
> > It seems that urpmi rewrite has stabilized so this syncs completion
with
> > current version. I stopped attempts to support several urpmi
versions
> > because it has been changing too rapidly and we do not have this
> > completion in any released mandrake version as yet.
> >
> > Chmouel, if it looks O.K. please add to cooker?
>
> yup look ok...
small fix (mostly for urpmi.addmedia --distrib)
-andrej
[-- Attachment #2: _urpmi.diff --]
[-- Type: application/octet-stream, Size: 1809 bytes --]
Index: Completion/Mandrake/Command/_urpmi
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Mandrake/Command/_urpmi,v
retrieving revision 1.3
diff -u -r1.3 _urpmi
--- Completion/Mandrake/Command/_urpmi 2002/01/13 13:11:18 1.3
+++ Completion/Mandrake/Command/_urpmi 2002/01/14 10:23:07
@@ -13,27 +13,21 @@
_urpmi() {
local state context line ret=1
typeset -A opt_args
- local update_policy
- zstyle -s ":completion:*:*:urpmi:*" cache-policy update_policy
- if [[ -z "$update_policy" ]]; then
- zstyle ":completion:*:*:urpmi:*" cache-policy _urpmi_cache_policy
- fi
-
case "$service" in
urpmi.addmedia )
_arguments -A '-*' \
"(--wget)--curl[use curl to retrieve distant files]" \
- "--distrib[automatically create all media from an installation medium]" \
+ "(:)--distrib[automatically create all media from an installation medium]:media URL:->media_url" \
"--update[mark as update media]" \
"(--curl)--wget[use wget to retrieve distant files]" \
"-c[clean headers cache directory]" \
"-f[force generation of hdlist files]" \
"-h[try to find and use synthesis or hdlist file]" \
- ":name of media: " \
- ":media URL:->media_url" \
- ": :(with)" \
- ":relative path to hdlist file: " \
+ "(--distrib):name of media: " \
+ "(--distrib):media URL:->media_url" \
+ "(--distrib): :(with)" \
+ "(--distrib):relative path to hdlist file: " \
&& ret=0
;;
urpmi.removemedia )
@@ -120,5 +114,12 @@
return $ret
}
+
+local update_policy
+
+zstyle -s ":completion:*:*:urpmi:*" cache-policy update_policy
+if [[ -z "$update_policy" ]]; then
+ zstyle ":completion:*:*:urpmi:*" cache-policy _urpmi_cache_policy
+fi
_urpmi "$@"
next prev parent reply other threads:[~2002-01-14 10:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-13 10:27 Borsenkow Andrej
2002-01-14 10:04 ` Chmouel Boudjnah
2002-01-14 10:23 ` Borsenkow Andrej [this message]
2002-04-23 9:45 _values does not quote inserted matches Oliver Kiddle
2002-05-06 7:04 ` PATCH: _urpmi update Borsenkow Andrej
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000f01c19ce5$8e8cf1d0$21c9ca95@mow.siemens.ru' \
--to=andrej.borsenkow@mow.siemens.ru \
--cc=chmouel@mandrakesoft.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).