From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id DB05B138010 for ; Mon, 10 Sep 2012 07:38:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3112EE06B0; Mon, 10 Sep 2012 07:37:46 +0000 (UTC) Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) by pigeon.gentoo.org (Postfix) with ESMTP id CD7A5E06B0 for ; Mon, 10 Sep 2012 07:37:45 +0000 (UTC) Received: by weyt57 with SMTP id t57so1156160wey.40 for ; Mon, 10 Sep 2012 00:37:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; bh=ex8FLE97C8m9OaE3+4CwVtuTyJvyXttKP9HBMgs0wlM=; b=vWGh24YJaPLGJ6/LVJe7j0VKykSwiNcUO1u/qKDEtAXRTZ6aTzUGEwj5QqohuPBRLx RdgzOiDEZ6hxUJ9sA9eMF+IALHobWWrJtCw+RGnQuiznKlc01HpUGc8K5imT4fXxn4Zk Iz/De0Pa6LLoeIiK7u+jKfjIIosVQjJpn5IpTW0KAkGfdI8E1tEuGKRUqEaAy97CigZJ J9EHcsJpmveBD2jt0UkAZJasSizUC6VZmtBhoE3C2J0ZFILWUSSpqOyN9KX/KPmqVArz SDKEVWMDGc5y3zqlCmkGq70BhdRBCYKz03l9x+AzHmsokTU9F9+wtrK5TyxRxTavBWnu tCig== Received: by 10.180.81.38 with SMTP id w6mr15137155wix.10.1347262664866; Mon, 10 Sep 2012 00:37:44 -0700 (PDT) Received: from localhost (cpc13-broo7-2-0-cust130.14-2.cable.virginmedia.com. [82.9.16.131]) by mx.google.com with ESMTPS id do5sm23476641wib.10.2012.09.10.00.37.43 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 10 Sep 2012 00:37:44 -0700 (PDT) Date: Mon, 10 Sep 2012 08:35:39 +0100 From: Ciaran McCreesh To: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= Cc: gentoo-pms@lists.gentoo.org Subject: Re: [gentoo-pms] best_version: missing failure behavior Message-ID: <20120910083539.7b797de5@googlemail.com> In-Reply-To: <20120910093035.4d84f06d@pomiocik.lan> References: <20120909233124.54cff513@pomiocik.lan> <20120910074040.2f029629@googlemail.com> <20120910093035.4d84f06d@pomiocik.lan> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.11; x86_64-pc-linux-gnu) 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; micalg=PGP-SHA1; boundary="Sig_/4OY9OLo0BBKH5R=PYBf9y_0"; protocol="application/pgp-signature" X-Archives-Salt: 48f7bd2b-1393-40ab-9bed-a23bdf1232be X-Archives-Hash: 8dd172be5a4bbacc1c71d250b541379d --Sig_/4OY9OLo0BBKH5R=PYBf9y_0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 10 Sep 2012 09:30:35 +0200 Micha=C5=82 G=C3=B3rny wrote: > On Mon, 10 Sep 2012 07:40:40 +0100 > Ciaran McCreesh wrote: > > On Sun, 9 Sep 2012 23:31:24 +0200 > > Micha=C5=82 G=C3=B3rny wrote: > > > > best_version Takes exactly one package dependency specification > > > > as an argument. If a matching package is installed, prints > > > > the category, package name and version of the highest matching > > > > version. > > >=20 > > > What happens if no matching package is installed? Is it then even > > > legal to call the function then? > >=20 > > If there's no matching package installed, it doesn't print anything. >=20 > Is it guaranteed to return with 0 exit status then? Paludis returns non-zero if there's nothing installed, and zero if a match is found. Don't know if Portage does the same, or whether we want to guarantee this behaviour. --=20 Ciaran McCreesh --Sig_/4OY9OLo0BBKH5R=PYBf9y_0 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlBNmE4ACgkQ96zL6DUtXhEXCQCg0RTN88dc+YE+2XraZCgMErdx btIAoKKF3WuSgCUz5H6+qE33WN22AozT =OV3o -----END PGP SIGNATURE----- --Sig_/4OY9OLo0BBKH5R=PYBf9y_0--