From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7843E1382C5 for ; Tue, 1 May 2018 11:33:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 85BCDE0963; Tue, 1 May 2018 11:33:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5E97DE0963 for ; Tue, 1 May 2018 11:33:51 +0000 (UTC) Received: from a1i15.kph.uni-mainz.de (host2092.kph.uni-mainz.de [134.93.134.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ulm) by smtp.gentoo.org (Postfix) with ESMTPSA id A8F8B335C78; Tue, 1 May 2018 11:33:49 +0000 (UTC) Message-ID: <23272.20633.915380.769616@a1i15.kph.uni-mainz.de> Date: Tue, 1 May 2018 13:33:45 +0200 To: gentoo-pms@lists.gentoo.org Cc: =?iso-8859-2?Q?Micha=B3_G=F3rny?= Subject: Re: [gentoo-pms] [PATCH 2/6] best_version: Explicitly specify the output format In-Reply-To: <20180501112401.7606-3-mgorny@gentoo.org> References: <20180501112401.7606-1-mgorny@gentoo.org> <20180501112401.7606-3-mgorny@gentoo.org> X-Mailer: VM 8.2.0b under 24.3.1 (x86_64-pc-linux-gnu) From: Ulrich Mueller Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Package Manager Specification discussions X-BeenThere: gentoo-pms@gentoo.org X-BeenThere: gentoo-pms@lists.gentoo.org Reply-To: gentoo-pms@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="pgp+signed+IVeMwFt1MEgUBuL"; micalg=pgp-sha256; protocol="application/pgp-signature" X-Archives-Salt: 6dba1ffa-1e95-4c8f-901d-8f8ec826cce9 X-Archives-Hash: f7bfeb1b88d7dfaf1c438023e82677b5 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --pgp+signed+IVeMwFt1MEgUBuL Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable >>>>> On Tue, 1 May 2018, Micha=B3 G=F3rny wrote: > Explain the format used by best=5Fversion command explicitly. Curren= tly, > the function only lists what gets printed but not in what form or how= it > is separated. > --- > pkg-mgr-commands.tex | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex > index cb704f0..4299624 100644 > --- a/pkg-mgr-commands.tex > +++ b/pkg-mgr-commands.tex > @@ -105,8 +105,9 @@ are given, \t{-r} is assumed. > \item[has=5Fversion] Takes exactly one package dependency specificat= ion as an argument. Returns > true if a package matching the specification is installed, and f= alse otherwise. > \item[best=5Fversion] Takes exactly one package dependency specifica= tion as an argument. If a > - matching package is installed, prints the category, package name= and version of the highest > - matching version; otherwise, prints an empty string. The exit co= de is unspecified. > + matching package is installed, prints the category, followed by = \t{/}, followed by package > + name, followed by \t{-}, followed by full version of the highest= matching version; Do we really need this=3F I think that "category, package name and version" is pretty clear. > + otherwise, prints an empty string. The exit code is unspecified.= > \end{description} =20 > \ChangeWhenAddingAnEAPI{7} > --=20 > 2.17.0 --pgp+signed+IVeMwFt1MEgUBuL Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAEBCAAGBQJa6FCUAAoJEMMJBoUcYcJzPPIH/1gZE17w7+PZjhD0dVkO5WBp FKTGs0uI/RKjpH7UjyzC/OcY3vR1HEsIoByq6PUQuijPHoblVBdQRq/PeQ0784OC XqovkY8yB5AtvgoJw6ExwlOG0m7yovcY9vYH3CCpjHKcr+VFg+eS+ObjnSSkmOVf RxdqZiiSuWiOFiecUhyDrS1RyuJv8q9Y0323EBEI2BdtqH1PN5J6ynkNGYTvX5TD 0wM6bvZN1a/Jb75WAww+yiikrEkiNkwPjVXQb8nrtL1ARVzgQTT4KY1mLvywCjWa ivBamW3LovWDw+JHWVMCJvLZZdA5Boc+TjLgTem224pFj7MeU86Oz7Hbs+ipksc= =4caF -----END PGP SIGNATURE----- --pgp+signed+IVeMwFt1MEgUBuL--