On Thu, Feb 21, 2013 at 15:09:10 +0100, Piotr Ozarowski wrote:
> [Julien Cristau, 2013-02-21]
> > So there's bits in debpython/depends.py I don't understand.
> > Why is maxv sometimes inclusive and sometimes exclusive?
>
> I assume you're talking about minv==maxv case, that's a special case
> and I admit it's confusing - that's why in experimental there's new
> Version class (and VersionRange) which should fix the confusion
> (when the refactoring is done)
>
Nope, I'm talking about
+ maxv = vrange[1] # note it's an open interval (i.e. do not add 1 here!)
[...]
+ self.depend("%s (<< %d.%d)" %
(tpl, maxv[0], maxv[1]))
vs
+ self.depend("%s (<< %d.%d)" %
(tpl, maxv[0], maxv[1] + 1))
a few lines later.
Cheers,
Julien
Attachment:
signature.asc
Description: Digital signature