From: Ulrich Mueller <ulm@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Request to add ~> atom prefix operator on Portage.
Date: Mon, 14 Sep 2015 11:04:31 +0200 [thread overview]
Message-ID: <22006.36255.215195.790901@a1i15.kph.uni-mainz.de> (raw)
In-Reply-To: <CAATnKFBeokUF1Ly4OGfp8XuGoJDXsENWDqOGnHxquLwb10JmoQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1265 bytes --]
>>>>> On Mon, 14 Sep 2015, Kent Fredric wrote:
> On 14 September 2015 at 20:01, Ulrich Mueller <ulm@gentoo.org> wrote:
>> Which of the following will match the package "cat/foo-1.02.3",
>> and why:
>>
>> =cat/foo-1.020.3
>> =cat/foo-1.020.3*
>> =cat/foo-01.02.3*
> Of those, I only expect the last to match, because leading 0's are
> not typically significant.
Well, version comparison is described in [1] and it says that
=cat/foo-1.020.3 will match cat/foo-1.02.3.
The problem is how to read the sentence "if the version specified has
an asterisk immediately following it, a string prefix comparison is
used instead" in the specification of the = operator [2]. Does that
string prefix comparison apply to the whole version (then neither
=cat/foo-1.020.3* nor =cat/foo-01.02.3* would match), or only to its
last component (then both would match)?
Portage behaviour is that =cat/foo-1.020.3* doesn't match but
=cat/foo-01.02.3* does. Which seems to disagree with either reading of
the spec.
Could someone check what is Paludis's behaviour for the examples
above? Also, does =cat/foo-1.2* match cat/foo-1.20 in Paludis?
Ulrich
[1] https://projects.gentoo.org/pms/5/pms.html#x1-290003.3
[2] https://projects.gentoo.org/pms/5/pms.html#x1-840008.2.6.1
[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]
next prev parent reply other threads:[~2015-09-14 9:04 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-14 4:35 [gentoo-dev] Request to add ~> atom prefix operator on Portage konsolebox
2015-09-14 5:38 ` Daniel Campbell
2015-09-14 6:15 ` konsolebox
2015-09-14 5:47 ` Kent Fredric
2015-09-14 5:51 ` Ulrich Mueller
2015-09-14 6:09 ` konsolebox
2015-09-14 6:19 ` Kent Fredric
2015-09-14 6:43 ` konsolebox
2015-09-14 6:52 ` Ulrich Mueller
2015-09-14 6:59 ` Kent Fredric
2015-09-14 8:01 ` Ulrich Mueller
2015-09-14 8:14 ` Kent Fredric
2015-09-14 9:04 ` Ulrich Mueller [this message]
2015-09-14 9:15 ` Kent Fredric
2015-09-14 11:38 ` Ulrich Mueller
2015-09-14 11:45 ` Kent Fredric
2015-09-14 11:53 ` Ulrich Mueller
2015-09-14 9:21 ` Kent Fredric
2015-09-14 11:46 ` Ulrich Mueller
2015-09-14 11:48 ` hasufell
2015-09-14 13:11 ` Ulrich Mueller
2015-09-14 19:56 ` Andreas K. Huettel
2015-09-14 20:19 ` hasufell
2015-09-14 20:53 ` Zac Medico
2015-09-14 20:56 ` Ulrich Mueller
2015-09-14 20:52 ` Ulrich Mueller
2015-09-14 16:38 ` Ciaran McCreesh
2015-09-14 8:18 ` Kent Fredric
2015-09-14 8:22 ` konsolebox
2015-09-14 8:28 ` Kent Fredric
2015-09-14 8:32 ` konsolebox
2015-09-14 8:41 ` konsolebox
2015-09-14 13:53 ` Manuel Rüger
2015-09-15 7:01 ` konsolebox
2015-09-14 7:58 ` [gentoo-dev] " Duncan
2015-09-14 8:16 ` konsolebox
2015-09-14 6:29 ` [gentoo-dev] " Paweł Hajdan, Jr.
2015-09-14 7:13 ` konsolebox
2015-09-14 18:07 ` Paweł Hajdan, Jr.
2015-09-14 18:54 ` Ulrich Mueller
2015-09-16 7:35 ` Kent Fredric
2015-09-15 7:21 ` konsolebox
2015-09-15 8:38 ` Ulrich Mueller
2015-09-15 8:54 ` konsolebox
2015-09-15 9:15 ` Ulrich Mueller
2015-09-15 9:31 ` Ulrich Mueller
2015-09-16 7:29 ` konsolebox
2015-09-16 7:40 ` konsolebox
2015-09-16 7:50 ` Kent Fredric
2015-09-15 12:18 ` Ciaran McCreesh
2015-09-16 7:32 ` konsolebox
2015-09-14 18:12 ` Kristian Fiskerstrand
2015-09-15 7:26 ` konsolebox
2015-09-15 7:47 ` konsolebox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=22006.36255.215195.790901@a1i15.kph.uni-mainz.de \
--to=ulm@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox