zsh-workers
 help / color / mirror / code / Atom feed
* patch to update _apt
@ 2003-11-18 13:34 Stephen Rueger
  2003-11-21  8:12 ` Oliver Kiddle
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Rueger @ 2003-11-18 13:34 UTC (permalink / raw)
  To: zsh-workers

Hello!

This patch updates _apt to work with APT 0.5.14, now part of both Debian
testing and unstable. It does not treat older versions different, so
people using it with e.g. Debian stable will get erroneous
completions. Is that behaviour acceptable or should i add a test solving
this issue?


--- _apt	2003-11-18 13:56:11.000000000 +0100
+++ _apt.new	2003-11-18 13:56:18.000000000 +0100
@@ -396,10 +396,11 @@
     -q,--quiet,--silent:intlevel \
     -d,--download-only:bool \
     -b,--compile,--build:bool \
-    -s,--simulate,--just-print,--recon,--no-act:bool \
+    -s,--simulate,--just-print,--dry-run,--recon,--no-act:bool \
     -y,--yes,--assume-yes:bool \
     -f,--fix-broken:bool \
     -u,--show-upgraded:bool \
+    -V,--verbose-versions:bool \
     -m,--ignore-missing,--fix-missing:bool \
     --no-download:bool \
     --ignore-hold:bool \
@@ -417,6 +418,7 @@
     --only-source:bool \
     --diff-only:bool \
     --tar-only:bool \
+    --arch-only:bool \
     -- \
     /$'update\0'/ \| \
     /$'upgrade\0'/ \| \
@@ -455,8 +457,9 @@
     -i,--important:bool \
     -f,--full:bool \
     -g,--generate:bool \
-    --names-only:bool \
+    -n,--names-only:bool \
     --all-names:bool \
+    -a,--all-versions:bool \
     --recurse:bool \
     -c,--config-file:configfile \
     -o,--option:arbitem \
@@ -470,14 +473,15 @@
     /$'dump\0'/ \| \
     /$'dumpavail\0'/ \| \
     /$'unmet\0'/ \| \
-    /$'check\0'/ \| \
     /$'search\0'/ /$'[^\0]#\0'/ ':strings:pattern:' \| \
     /$'show\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
-    /$'depends\0'/ \| \
-    /$'pkgnames\0'/ \| \
-    /$'dotty\0'/ \| \
+    /$'depends\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
+    /$'rdepends\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
+    /$'pkgnames\0'/ /$'[^\0]#\0'/ ':strings:prefix:' \| \
+    /$'dotty\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
+    /$'xvcg\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
     /$'policy\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
-    /"[]"/ ':argument-1::compadd "$expl_action[@]" help add gencaches showpkg showsrc stats dump dumpavail unmet check search show depends pkgnames dotty policy'
+    /"[]"/ ':argument-1::compadd "$expl_action[@]" help add gencaches showpkg showsrc stats dump dumpavail unmet search show depends rdepends pkgnames dotty policy xvcg'
 
   _apt-cache () {
     local expl_action expl_packages expl_pkg_cache expl_src_cache
@@ -506,7 +510,8 @@
     -o,--option:arbitem \
     -- \
     /$'add\0'/ \| \
-    /"[]"/	':argument-1::compadd "$expl_action[@]" add'
+    /$'ident\0'/ \| \
+    /"[]"/	':argument-1::compadd "$expl_action[@]" add ident'
 
   _apt-cdrom () {
     local expl_action expl_mount_point

-- 
Stephen Rüger
stephen.rueger@rechnerpost.org


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: patch to update _apt
  2003-11-18 13:34 patch to update _apt Stephen Rueger
@ 2003-11-21  8:12 ` Oliver Kiddle
  0 siblings, 0 replies; 2+ messages in thread
From: Oliver Kiddle @ 2003-11-21  8:12 UTC (permalink / raw)
  To: Stephen Rueger; +Cc: zsh-workers

On 18 Nov, Stephen Rueger wrote:
> 
> This patch updates _apt to work with APT 0.5.14, now part of both Debian
> testing and unstable. It does not treat older versions different, so
> people using it with e.g. Debian stable will get erroneous
> completions. Is that behaviour acceptable or should i add a test solving
> this issue?

Thanks.

Doesn't look like it breaks anything too fundamental for Debian stable.
I've commit it as it is: most Debian stable users will use the zsh .deb
anyway and that won't be affected.

Oliver


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-21  8:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-18 13:34 patch to update _apt Stephen Rueger
2003-11-21  8:12 ` Oliver Kiddle

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).