From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1G8VQo-0001V2-7D for garchives@archives.gentoo.org; Thu, 03 Aug 2006 05:07:38 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k7356o2Y008349; Thu, 3 Aug 2006 05:06:50 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k7354pQs004150 for ; Thu, 3 Aug 2006 05:04:52 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 13BED64289 for ; Thu, 3 Aug 2006 05:04:51 +0000 (UTC) Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20482-05 for ; Thu, 3 Aug 2006 05:04:43 +0000 (UTC) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by smtp.gentoo.org (Postfix) with ESMTP id C631B64434 for ; Thu, 3 Aug 2006 05:04:39 +0000 (UTC) Received: from [82.83.42.122] (helo=sven.genone.homeip.net) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis), id 0ML25U-1G8VNu2Lyx-0005zh; Thu, 03 Aug 2006 07:04:38 +0200 Date: Thu, 3 Aug 2006 07:07:35 +0200 From: Marius Mauch To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] atom matching behavior Message-ID: <20060803070735.61a1e3e9@sven.genone.homeip.net> Organization: Gentoo X-Mailer: Sylpheed-Claws 2.3.1 (GTK+ 2.8.19; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_mE_v7ljq9_azBq8k35pf6jJ; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Provags-ID: kundenserver.de abuse@kundenserver.de login:7e6c91d1b14dbccceb2f2166522fa0f6 X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Status: No, score=-2.297 required=5.5 tests=[AWL=0.167, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.297 X-Spam-Level: X-Archives-Salt: be899f7d-fc0e-4bef-8718-819925d6814b X-Archives-Hash: 844ddd416fcc8c90a29c9cccdc40cd17 --Sig_mE_v7ljq9_azBq8k35pf6jJ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Repost from gentoo-portage-dev[1]: Was just brought to my attention that the =3D* operator doesn't work as I thought, as for example =3Dfoo-1.2* matches foo-1.20 as well as foo-1.2.3. This wouldn't be a bug problem if it could be used as a general glob operator like with =3Dfoo-1.2.*, but it's use is strictly limited to the above version (can only be used when a version component separator may appear), so atm there is no facility to reliably lock an atom at a specific version component when you have to account for multi-digit components. Now the question is if we want this glob-style behavior or not. From the code comments it seems to be intentional, but I'd suspect that many people share my original assumption and expect it to only match full version components (as that is the much more common use case). Doesn't help that the atom description in ebuild(5) doesn't specify the behavior for this case either,=20 "* means match any version of the package so long as the specified base is matched" can be read both ways. Opinions? Marius [1] http://thread.gmane.org/gmane.linux.gentoo.portage.devel/2231/focus=3D2231 --=20 Public Key at http://www.genone.de/info/gpg-key.pub In the beginning, there was nothing. And God said, 'Let there be Light.' And there was still nothing, but you could see a bit better. --Sig_mE_v7ljq9_azBq8k35pf6jJ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) iD8DBQFE0YSaWzrL1pM7SNcRAl8EAJ9uXL0mhQN+rLDgesSIxbpR9DcV+wCfcfA1 KM4LjW58jf/mAFeDZdewxs0= =UE1r -----END PGP SIGNATURE----- --Sig_mE_v7ljq9_azBq8k35pf6jJ-- -- gentoo-dev@gentoo.org mailing list