From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27336 invoked by alias); 12 Dec 2017 05:47:24 -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: List-Unsubscribe: X-Seq: 42114 Received: (qmail 24637 invoked by uid 1010); 12 Dec 2017 05:47:23 -0000 X-Qmail-Scanner-Diagnostics: from mail-ot0-f173.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(74.125.82.173):SA:0(-1.7/5.0):. Processed in 5.625876 secs); 12 Dec 2017 05:47:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: phy1729@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:user-agent; bh=bC/ArkybwziF6Q7N0HhB05gq4n/d+4JPt+BZVNz8mL8=; b=LBFFjYuYPfrDdnqNrS3K56nqDeST8nMYyVvrQicNHTklwKJzIfD6Y2NsiYlwXiISGQ VuleiWnDHcci4dVi+vyl8SbgguoAlD/ppu6JvgXrPlKtUK/fcqHpahH7HkoR7e8Z0adp uXIAMm9bRxB95nQpzhh8kU9xC62YinI+jxMKFxcZyywXCtApRxeUo8H7JwSu0N5HXZwl 7IwA0RonIN1HgouR1p1nQUfBnkVp8DdLGEk8IoPTBJRACavxsWRhfmtVIn+7jnlFtpu9 fqjHjjEEpzGQjq/1lfL5GbAUxCEo+WlFEZCb/VN3XwSzvAo0Hc/cKUIzkEKDaQiaUmai CW2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :mime-version:content-disposition:user-agent; bh=bC/ArkybwziF6Q7N0HhB05gq4n/d+4JPt+BZVNz8mL8=; b=TEzA/rhxUjU30Q3PvVVOwkckIILwejgw0Tnipa8aZJ/Gz2bL8yXuBsi1oJ4FoDS0hg YCwPBbTZH6pwG6CxQeGnwSsjR6TngXKmD+865YUIIVekCKJYC23qA+GTpRzmxQrdFrMF a3WkYV7KDAnJp+VUu4Wx47DxnIIOWxq3grN/tmtpUKokbnWrrppSWthli5KZ5NGOljzD s40RViBcpDpxCs0AR+gL7lk07FmSrnr0s3LIGVFVb2lo44jvzkAd8MdOxtZ2wyQC9n7S lQ0ogxGyXMGaOPYq91HzdIQuQQpcvQv22gSpxV7PiKKJyPqctY1GBU+pBKECIwsX8BHI cbAQ== X-Gm-Message-State: AKGB3mLanw8SiEHrtgxZSHLZTOMFvjRXOVWw5bSQFpU/7ii9iy1T1wh/ Ps8C7HVTiSF0oAlAU6vT4Y/OcVIg X-Google-Smtp-Source: ACJfBovrSO7VUm6k3wQMb73R399T8ngCgEajjixDb9dnkntXMmQ3NN3sHKQS4YTMbK0ejW57Ks3j8g== X-Received: by 10.157.34.200 with SMTP id y66mr2271423ota.276.1513057633357; Mon, 11 Dec 2017 21:47:13 -0800 (PST) Date: Mon, 11 Dec 2017 23:47:10 -0600 From: Matthew Martin To: zsh-workers@zsh.org Subject: [patch] _bsd_pkg update Message-ID: <20171212054710.GA43376@CptOrmolo.darkstar> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) FreeBSD has moved away from pkg_* tooling, so the FreeBSD bits have been removed. There is still an XXX for OpenBSD's pkg_info -K which should only be offered with -L. Also fix some tabs while here. I did check that the PORTSDIR and PACKAGE_REPOSITORY settings in /etc/mk.conf override the environment variable not the other way around. Added _{f,n,o}bsd_architectures types. Still not clear on what is required for types, so that's mostly cargo culted. _fbsd isn't used in this patch, but it seemed odd to have _obsd and _nbsd without completing the three. - Matthew Martin diff --git a/Completion/BSD/Command/_bsd_pkg b/Completion/BSD/Command/_bsd_pkg index 9f4b0f11a..d8928afaf 100644 --- a/Completion/BSD/Command/_bsd_pkg +++ b/Completion/BSD/Command/_bsd_pkg @@ -7,14 +7,20 @@ _bsd_pkg_pkgfiles() { case $OSTYPE in netbsd*) portsdir=/usr/pkgsrc + pkgsdir=${PACKAGES:-$portsdir/packages}/All + ;; + openbsd*) + portsdir=${${(M)${(f)"$(