Gentoo Archives: gentoo-portage-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Re: Atom matching behavior
Date: Wed, 02 Aug 2006 16:31:18
Message-Id: 200608021229.17158.vapier@gentoo.org
In Reply to: Re: [gentoo-portage-dev] Re: Atom matching behavior by Brian Harring
1 On Tuesday 01 August 2006 13:19, Brian Harring wrote:
2 > On Tue, Aug 01, 2006 at 12:48:05AM -0400, Mike Frysinger wrote:
3 > > On Monday 31 July 2006 23:57, Drake Wyrm wrote:
4 > > > The question I'm trying to ask is this: =foo-1.2.* should obviously
5 > > > match "foo-1.2.3", but should it also match on "foo-1.2"? It seems more
6 > > > _useful_ that the 1.2 version would also match, despite not having the
7 > > > .3 subversion, but perhaps that is not perfectly intuitive from the
8 > > > syntax.
9 > >
10 > > portage versions have implicit .0 extension ad infinitum so matching 1.2
11 > > would make logical sense as it is really just 1.2.0 ...
12 >
13 > Err... wrong actually (try emerge -pv =dev-util/diffball-0.6.5 and
14 > emerge -pv =dev-util/diffball-0.6.5.0). cpv's don't have implicit .0
15 > extensions, and that should _not_ be changed.
16
17 when it comes to version comparing, there is implicit .0 extension ... which
18 is what we're talking about here, comparing versions
19 -mike