Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#448182: completion for dpkg-repack



On Fri, Oct 26, 2007 at 08:09:28PM +0200, Dr. Markus Waldeck wrote:
> I made a completion for dpkg-repack:
> 
> cat /usr/share/zsh/4.3.4/functions/Completion/Debian/_dpkg-repack
> #compdef dpkg-repack
> 
> _arguments \
>         '--root=[Take package from filesystem rooted on <dir>.]' \
>         '--arch=[Force the parch to be built for architecture <arch>.]' \
>         '--generate[Generate build directory but do not build deb.]' \
>         '*:package:_deb_packages xinstalled'

Thanks.  I've tweaked it a bit.

Index: Completion/Debian/Command/_dpkg-repack
===================================================================
RCS file: Completion/Debian/Command/_dpkg-repack
diff -N Completion/Debian/Command/_dpkg-repack
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Completion/Debian/Command/_dpkg-repack	26 Oct 2007 18:20:10 -0000
@@ -0,0 +1,7 @@
+#compdef dpkg-repack
+
+_arguments \
+  '--root=[take package from filesystem rooted on <dir>]:root dir:_files -/' \
+  '--arch=[force the package to be built for architecture <arch>]:architecture:(alpha amd64 arm hppa hurd-i386 i386 ia64 m68k mips mipsel powerpc s390 sparc)' \
+  '--generate[generate build directory but do not build deb]' \
+  '*:package:_deb_packages xinstalled'



Messages sorted by: Reverse Date, Date, Thread, Author