From owner-svn-ports-all@FreeBSD.ORG Fri Dec 7 17:32:07 2012 Return-Path: Delivered-To: svn-ports-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DE4BBA2C; Fri, 7 Dec 2012 17:32:07 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from mail.mahoroba.org (ent.mahoroba.org [IPv6:2001:2f0:104:8010::1]) by mx1.freebsd.org (Postfix) with ESMTP id BC7DA8FC14; Fri, 7 Dec 2012 17:32:06 +0000 (UTC) Received: from yuga.mahoroba.org (ume@yuga.mahoroba.org [IPv6:2001:2f0:104:8010:7258:12ff:fe22:d94b]) (user=ume mech=DIGEST-MD5 bits=0) by mail.mahoroba.org (8.14.5/8.14.5) with ESMTP/inet6 id qB7HVsAx006963 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sat, 8 Dec 2012 02:31:59 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Sat, 08 Dec 2012 02:31:53 +0900 Message-ID: From: Hajimu UMEMOTO To: Baptiste Daroussin Subject: Re: svn commit: r308418 - head/ports-mgmt/pkg In-Reply-To: <201212071126.qB7BQqmX083846@svn.freebsd.org> References: <201212071126.qB7BQqmX083846@svn.freebsd.org> User-Agent: xcite1.60> Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.8 Emacs/24.2 (i386-portbld-freebsd9.1) MULE/6.0 (HANACHIRUSATO) X-Operating-System: FreeBSD 9.1-PRERELEASE X-PGP-Key: http://www.mahoroba.org/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Sat_Dec__8_02:31:53_2012-1" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mail.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Sat, 08 Dec 2012 02:31:59 +0900 (JST) X-Virus-Scanned: clamav-milter 0.97.6 at asuka.mahoroba.org X-Virus-Status: Clean X-Spam-Status: No, score=-5.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on asuka.mahoroba.org Cc: svn-ports-head@FreeBSD.org, svn-ports-all@FreeBSD.org, ports-committers@FreeBSD.org X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2012 17:32:08 -0000 --Multipart_Sat_Dec__8_02:31:53_2012-1 Content-Type: text/plain; charset=US-ASCII Hi, >>>>> On Fri, 7 Dec 2012 11:26:52 +0000 (UTC) >>>>> Baptiste Daroussin said: bapt> Author: bapt bapt> Date: Fri Dec 7 11:26:51 2012 bapt> New Revision: 308418 bapt> URL: http://svnweb.freebsd.org/changeset/ports/308418 bapt> Log: bapt> - update to 1.0.3 bapt> - changes: bapt> * Accept to query _https._tcp srv records bapt> * Fix diskspace change calculation in pkg upgrade bapt> * Fix pkg info -s -F apackage bapt> * Better ABI determination bapt> * Fix pkg upgrade badly returning 0 in case of failure bapt> * Fix build with recent clang 3.2 bapt> bapt> Feature safe: yes Could you include the attached patch? - add support zsh completion for `help'. - make zsh completion for 'stats' work. - fix description of upgrade -y and -n. Sincerely, --Multipart_Sat_Dec__8_02:31:53_2012-1 Content-Type: application/octet-stream Content-Disposition: attachment; filename="patch-scripts_zsh___pkg" Content-Transfer-Encoding: 7bit Index: scripts/zsh/_pkg diff -u scripts/zsh/_pkg.orig scripts/zsh/_pkg --- scripts/zsh/_pkg.orig 2012-12-05 20:00:45.000000000 +0900 +++ scripts/zsh/_pkg 2012-12-08 02:20:43.344635971 +0900 @@ -14,6 +14,7 @@ _pkg() { local earlyargs subcmd + local subcmd_list cmd earlyargs=( '-d[Increment debug level]' '-j[Execute pkg(1) inside a jail(8)]:jail:' @@ -143,7 +144,13 @@ && return 0 ;; (help) - # TODO + subcmd_list=( $( + for cmd in $subcmd[@]; do + print ${cmd/\[*/} + done + ) ) + _arguments -s \ + ':command:_values -S " " -w "pkg subcommands" $subcmd_list[@]' return 0 ;; (info) @@ -249,7 +256,7 @@ _arguments -s \ '-q[Be quiet]' \ '(-l)-r[Display stats only for the local package database]' \ - '(-r)-l[Display stats only for the remote package database(s)' \ + '(-r)-l[Display stats only for the remote package database(s)]' \ && return 0 ;; (update) @@ -267,8 +274,8 @@ ;; (upgrade) _arguments -s \ - '(-y)-n[Assume yes when asked for confirmation]' \ - '(-n)-y[Assume no (dry run) for confirmations]' \ + '(-y)-n[Assume no (dry run) for confirmations]' \ + '(-n)-y[Assume yes when asked for confirmation]' \ '-f[Upgrade/Reinstall everything]' \ '-L[Do not try to update the repository metadata]' \ && return 1 --Multipart_Sat_Dec__8_02:31:53_2012-1 Content-Type: text/plain; charset=US-ASCII -- Hajimu UMEMOTO ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.mahoroba.org/~ume/ --Multipart_Sat_Dec__8_02:31:53_2012-1--