Summary: | [patch] vercmp in sys-apps/portage-2.2_rc30 and earlier can return long | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Douglas Anderson <douglasjanderson> |
Component: | Core | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | minor | Keywords: | InVCS |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 210077, 268228 | ||
Attachments: |
ensure vercmp output is -1, 0 or 1
simplify pkgcmp |
Description
Douglas Anderson
2009-04-17 09:20:47 UTC
Created attachment 188656 [details, diff]
ensure vercmp output is -1, 0 or 1
Thanks, I've committed a version of your patch in r13353. I've modified it to use the (a > b) - (a < b) construct as suggested in the py3k docs, since cmp() is no longer supported in py3k: http://docs.python.org/3.0/whatsnew/3.0.html#ordering-comparisons Created attachment 188763 [details, diff]
simplify pkgcmp
Thanks, Zac. I totally forgot about cmp going away.
Fixing vercmp also lets us simplify pkgcmp:
(In reply to comment #3) > Created an attachment (id=188763) [edit] > simplify pkgcmp Thanks, that's in svn r13354. This is fixed in 2.2_rc31. This is fixed in 2.1.6.12. |