Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 113572 Details for
Bug 171259
vercomp() assumption on "_suffix == _suffix0" is broken
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
portage_versions_fix2.patch
portage_versions_fix2.patch (text/plain), 826 bytes, created by
TGL
on 2007-03-17 14:34:47 UTC
(
hide
)
Description:
portage_versions_fix2.patch
Filename:
MIME Type:
Creator:
TGL
Created:
2007-03-17 14:34:47 UTC
Size:
826 bytes
patch
obsolete
>--- pym/portage_versions.py.orig 2007-03-17 14:20:36.000000000 +0100 >+++ pym/portage_versions.py 2007-03-17 14:31:40.000000000 +0100 >@@ -124,11 +124,11 @@ > > for i in range(0, max(len(list1), len(list2))): > if len(list1) <= i: >- s1 = ("p","0") >+ s1 = ("p","-2") > else: > s1 = suffix_regexp.match(list1[i]).groups() > if len(list2) <= i: >- s2 = ("p","0") >+ s2 = ("p","-2") > else: > s2 = suffix_regexp.match(list2[i]).groups() > if s1[0] != s2[0]: >@@ -137,9 +137,9 @@ > # it's possible that the s(1|2)[1] == '' > # in such a case, fudge it. > try: r1 = int(s1[1]) >- except ValueError: r1 = 0 >+ except ValueError: r1 = -1 > try: r2 = int(s2[1]) >- except ValueError: r2 = 0 >+ except ValueError: r2 = -1 > return r1 - r2 > > # the suffix part is equal to, so finally check the revision
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 171259
:
113571
| 113572 |
113593