Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Update completion for Slackware's pkgtools
- X-seq: zsh-workers 27212
- From: Andrew Psaltis <ampsaltis@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: [PATCH] Update completion for Slackware's pkgtools
- Date: Fri, 31 Jul 2009 00:21:51 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=rdOYvWz2iQuLBZR9PZ0bUC6n46qjZ1DUhB1C7klK3OA=; b=gS+VdOtecCxAQjZRQaaLc0gilMuqZfODWpjVAe2o8fpv1v3FDbfP0zuvvwjbXhDSnS t8a987RIzuh4qvvXor++7XlWRe7uMiMcW3ppC7tcEZHzg85SRa4lirg61fhSXSSGbcv1 y+EvBYnWpstUtIVcfx2ZRk63Ec6YePOHX2MP8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=jnbnnmy5jXchQ0jLvVq03ZL6GQ8kAaqcBqrhMwlM2iPQi4Vo3DwiyZ+aQ06oYBBVcO Lp4/U0bvWRntqHqzXyqrHbSZTtln2kfsjSIqOiD+4Ozd/M1X8hc1I3wh8iMT+1IP37iC PUxK5OHsNLBX/0Tw3+bbv/DMtUfaUqCh5XNnA=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Greetings.
Due to updates to Slackware's pkgtools, .txz, .tbz, and .tlz packages
are now supported. The following is a patch that updates zsh's pkgtool
completion to accept those packages.
~Andrew
Index: Completion/Linux/Command/_pkgtool
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Linux/Command/_pkgtool,v
retrieving revision 1.7
diff -u -r1.7 _pkgtool
--- Completion/Linux/Command/_pkgtool 21 Jun 2005 10:01:30 -0000 1.7
+++ Completion/Linux/Command/_pkgtool 19 Jul 2009 03:12:19 -0000
@@ -12,7 +12,7 @@
"-ask[always ask on package installation regardless of package's
priority]" \
'-priority[provide a priority for the entire package list to
use]:priority list:(ADD REC OPT SKP)' \
'-tagfile[specify a different file to use for package
priorities]:tagfile:_files -/' \
- '*:package file:_files -g "*.tgz(-.)"'
+ '*:package file:_files -g "*.t[gblx]z(-.)"'
;;
removepkg)
@@ -29,11 +29,11 @@
'--install-new[install new packages in addition to upgrading
existing ones]' \
'--reinstall[upgrade even when the same version is already
installed]' \
'--verbose[show all the gory details of the upgrade]' \
- '*:package file:_files -g "*.tgz(-.)"'
+ '*:package file:_files -g "*.t[gblx]z(-.)"'
;;
explodepkg)
- _wanted file expl 'package file' _files -g '*.tgz(-.)'
+ _wanted file expl 'package file' _files -g '*.t[gblx]z(-.)'
;;
makepkg)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author