From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25794 invoked by alias); 28 Jun 2014 12:29:34 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32814 Received: (qmail 1443 invoked from network); 28 Jun 2014 12:29:28 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Date: Sat, 28 Jun 2014 14:29:21 +0200 From: Axel Beckert To: zsh-workers@zsh.org Subject: Fwd: [Pkg-zsh-devel] Bug#681518: [zsh] dpkg --print-foreign-architectures isn't filled automatically by zsh when tab is pressed [origin: sebastian@ramacher.at] Message-ID: <20140628122921.GB5355@sym.noone.org> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="JfVplkuTfB13Rsg5" Content-Disposition: inline X-Operating-System: Linux 3.2.0-4-amd64 X-Machine: sym2 x86_64 X-Editor: GNU Emacs 23.4.1 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAAAAAC3mUtaAAAABGdBTUEAALGPC/xhBQAAADh0RVh0U29mdHdhcmUAWFYgVmVyc2lvbiAzLjEwYSAgUmV2OiAxMi8yOS85NCAoUE5HIHBhdGNoIDEuMindFS5JAAACGElEQVQ4jXXQMU8UYRDG8f8shNjdDH4AbpfGDjAWlKiJiZ0ajL1aGCvsNCbGaCGG1koLaztaTYz6ATy+gOyehYmF3MxVxgg3FnDsHcTpJr/M+8w7Rf6nCsaVTTDqxbg9hoOXmw83H71+Eyfg4E1d7/Z2fG9rGkZbTQiu+K+3U/C+76lmkvAhJuDndnoAiftou4V84okAGclop4U/jYACZDTxrYWP0gkxVfAm/W//GLZpxIzwIN0Hn8dw0B+IWkZmQmRsj2HfhwokEklHfNCCiQCRgAR7YyhQVRVTCKCzP4Y5zBBE0t0zY3Q8oQaBqqAMlVEcgVQd9706zGirAFium8HXumlMIeMwqQCInju+2+uB6MRENupdpMt8pRlHZyuAW0F+Mb6XSIVqtxjD+iVmVqqystLEzFTGT92YqRaXpNT5eTVjeJhbALPnrTxLUZUKZsgxcNm64hAOYisT/xhF+oKTGU5RegtC3Rt6eEDi/QnIevdTx9Md2EMmYBRmCQR1026FCGQQJJExsRUqgkMGaWSbwYLnoO4T6VgpbQbdELPMBAHWWrhYrcxXnYgAsatPWygkFCBD4K62MAsOTqA6szYRPpsu6e6Y8mPiVrBMNuGIMrgwBUu4p2DgG1Ownu6hpuTv7hScefHAzAC/yRRw5U5pALMbJ4AUALvHSZhxgHPXTsHcdWD1GadAHr9avP+c0wCr7263Df8ASLwXWHWs+KIAAAAHdElNRQfYBQEBODPr Organization: DeuxChevaux.org -- The =?iso-8859-1?Q?Citr?= =?iso-8859-1?B?b+tu?= 2CV Database User-Agent: Mutt/1.5.21 (2010-09-15) --JfVplkuTfB13Rsg5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, attached a patch which expands zsh's dpkg tab completion by some more recent options. Initially reported in Debian at https://bugs.debian.org/681518, patch submitted at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681518#13 The patch (also in the attached mail) applies cleanly again zsh git HEAD. Kind regards, Axel -- /~\ Plain Text Ribbon Campaign | Axel Beckert \ / Say No to HTML in E-Mail and News | abe@deuxchevaux.org (Mail) X See http://www.nonhtmlmail.org/campaign.html | abe@noone.org (Mail+Jabber) / \ I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web) --JfVplkuTfB13Rsg5 Content-Type: message/rfc822 Content-Disposition: inline Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on sym2.noone.org X-Spam-Level: X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID autolearn=ham version=3.3.1 X-Original-To: abe@deuxchevaux.org Delivered-To: abe@sym2.noone.org Received: from wagner.debian.org (wagner.debian.org [217.196.43.132]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by sym2.noone.org (Postfix) with ESMTPS id DB5C4646217 for ; Sun, 28 Oct 2012 02:03:19 +0100 (CET) Received: from localhost ([::1] helo=wagner.debian.org) by wagner.debian.org with esmtp (Exim 4.72) (envelope-from ) id 1TSHHa-0001xT-T8 for abe@debian.org; Sun, 28 Oct 2012 01:03:19 +0000 Received: from buxtehude.debian.org ([140.211.166.26]) by wagner.debian.org with esmtp (Exim 4.72) (envelope-from ) id 1TSHHP-0001wO-Ru for pkg-zsh-devel@lists.alioth.debian.org; Sun, 28 Oct 2012 01:03:10 +0000 Received: from debbugs by buxtehude.debian.org with local (Exim 4.72) (envelope-from ) id 1TSHHL-000609-FH; Sun, 28 Oct 2012 01:03:03 +0000 X-Loop: owner@bugs.debian.org Resent-From: Sebastian Ramacher Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Debian Zsh Maintainers X-Loop: owner@bugs.debian.org Resent-Date: Sun, 28 Oct 2012 01:03:01 +0000 Resent-Message-ID: X-Debian-PR-Message: followup 681518 X-Debian-PR-Package: zsh X-Debian-PR-Keywords: X-Debian-PR-Source: zsh Received: via spool by 681518-submit@bugs.debian.org id=B681518.135138609722299 (code B ref 681518); Sun, 28 Oct 2012 01:03:01 +0000 Received: (at 681518) by bugs.debian.org; 28 Oct 2012 01:01:37 +0000 Received: from alphacentauri.ramacher.at ([78.47.122.157] ident=Debian-exim) by buxtehude.debian.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1TSHFw-0005nR-Hv for 681518@bugs.debian.org; Sun, 28 Oct 2012 01:01:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ramacher.at; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date; bh=AqnPNVjUrw0JrQHoH2iS+126NQsWZPD/8S92oC+VbZI=; b=eXq3C/bHujCC9udZWXB+1J+J+tUp5LKrrJjyT4sgSkEOLypoGK+PNV05bwMUZrk19/GEKbFIOmmpiDx+iK6b9JhjzlMlaTcrrD/eBQwMjXOtE4jxHMbYiBGRKcbcFU26dbWtfzilINLH9xFVGQuV9kEqYerFznr8raxHOdRCXX4=; Received: from chello084115130108.2.graz.surfer.at ([84.115.130.108] helo=earth.ramacher.at) by alphacentauri.ramacher.at with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TSHFq-00031Q-Vv; Sun, 28 Oct 2012 02:01:33 +0100 Received: from sebastian by earth.ramacher.at with local (Exim 4.80) (envelope-from ) id 1TSHAu-0004O0-DO; Sun, 28 Oct 2012 02:56:24 +0200 Date: Sun, 28 Oct 2012 02:56:24 +0200 From: Sebastian Ramacher To: mkaysi@users.sourceforge.net, 681518@bugs.debian.org Message-ID: <20121028005624.GA16782@earth.ramacher.at> References: <5000873C.1040508@users.sourceforge.net> <50008DD8.2050400@users.sourceforge.net> MIME-Version: 1.0 In-Reply-To: <50008DD8.2050400@users.sourceforge.net> User-Agent: Mutt/1.5.21 (2010-09-15) Resent-Sender: Debian BTS x-debian-approved: yes Subject: [Pkg-zsh-devel] Bug#681518: [zsh] dpkg --print-foreign-architectures isn't filled automatically by zsh when tab is pressed X-BeenThere: pkg-zsh-devel@lists.alioth.debian.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Sebastian Ramacher , 681518@bugs.debian.org List-Id: Development Mailinglist for the Debian packaging of Zsh List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============8148369659945263283==" Sender: pkg-zsh-devel-bounces+abe=debian.org@lists.alioth.debian.org Errors-To: pkg-zsh-devel-bounces+abe=debian.org@lists.alioth.debian.org X-SA-Exim-Connect-IP: ::1 X-SA-Exim-Mail-From: pkg-zsh-devel-bounces+abe=debian.org@lists.alioth.debian.org X-SA-Exim-Scanned: No (on wagner.debian.org); SAEximRunCond expanded to false X-Keywords: X-UID: 95082 --===============8148369659945263283== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jq0ap7NbKX2Kqbes" Content-Disposition: inline --jq0ap7NbKX2Kqbes Content-Type: multipart/mixed; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Control: tags -1 + patch Hi, On 2012-07-14 00:06:32, Mika Suomalainen wrote: > This should probably be changed as "dpkg is missing multiarch related > option fillings", because it seems that --add-architecture and > --remove-architecture are missing too. I've attached a patch that adds --add-architecture, --remove-architecture a= nd --print-foreign-architectures. Regards --=20 Sebastian Ramacher --tKW2IUtsqtDRztdT Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="681515.patch" Content-Transfer-Encoding: quoted-printable diff --git a/Completion/Debian/Command/_dpkg b/Completion/Debian/Command/_d= pkg index e7184e7..3503d09 100644 --- a/Completion/Debian/Command/_dpkg +++ b/Completion/Debian/Command/_dpkg @@ -50,6 +50,9 @@ _dpkg_actions=3D( '--yet-to-unpack[list uninstalled]' '--print-architecture[print target architecture]' '--print-installation-architecture' + '--print-foreign-architectures[print list of extra architectures]' + '--add-architecture[add extra architecture]:architecture:->add_architect= ure' + '--remove-architecture[remove extra architecture]:architecture:->remove_= architecture' '--compare-versions[compare version numbers]:*::expression:=3D ->compare= _versions' ) =20 @@ -179,4 +182,13 @@ case "$state" in _call_function ret _dpkg_$state && return ret _files ;; + add_architecture) + _call_function ret _dpkg_$state && return ret + _wanted architecture expl 'extra architecture' \ + compadd ${(f)"$(dpkg-architecture -L 2>/dev/null)"} + ;; + remove_architecture) + _call_function ret _dpkg_$state && return ret + _wanted architecture expl 'extra architecture' \ + compadd ${(f)"$(dpkg --print-foreign-architectures 2>/dev/null)"} esac --tKW2IUtsqtDRztdT-- --jq0ap7NbKX2Kqbes Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCAAGBQJQjIK0AAoJEGny/FFupxmT+vwP/3d0COb1qh777+rck8e8NT95 FtujpPTHmKNohiILMxHztn/pQK7LEYTkUQAxScCnGmyNASwvXupQgmuWf38r8yMo L1CSq3/p4/qEl5GTlNYtIb1vNCuncfVUeYeECAogUrD9pU/UdKysrt4c/NTyYr2h UCodnUtWJy+hgo941v+6cR2UwlBvrtlBfgRLXR5WEO31H1RQ58LsGu36f6PFOvMu 3QoOl3oJRkl+1eC3x5L9XnIiSbbhXRzRUlUHj7ozoTm/Z1EjGqL8GsjIeQeC0D2W N832rD5I0HS1HFu7jyJkAPrrSkkKI+TabatxSzHZ90qenPNVcyxdGFw2/vmccPtH ZsYTp7q3G0Diq1a2ajRMguHQ5xtkk44G26lQikuCyXvd4kyL17cL2cadOuf/XiIP bJBrgme/LJO0On91TFAOydoFdg6r5+rX9LjUq5oDUzU9JwZrDli7lFiJfS0Czhbv Xv06ZVo9o01hDIbcSC9m1a7LFzB3DMauP9b0AsEQ6VDeZhwahP1wQ6CozZR1JdN3 pleeffky1ZgVwViIMqVjd2iQU/BG3qZAvV0tz01bOjBXNMC7oRK55LRvvpgaef1L E1Nn9vlSZ18MwrIMqdxUerUbzOCWB3snyJO12Ug/I0Oe1urRpQSGN+/H/rL9EDh3 WBm5ELNN0332Rg8bmQtB =2HnI -----END PGP SIGNATURE----- --jq0ap7NbKX2Kqbes-- --===============8148369659945263283== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Pkg-zsh-devel mailing list Pkg-zsh-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-zsh-devel --===============8148369659945263283==-- --JfVplkuTfB13Rsg5--