Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r15319 - main/branches/prefix/pym/portage
Date: Thu, 04 Feb 2010 19:03:47
Message-Id: E1Nd6zO-0005vn-Ax@stork.gentoo.org
1 Author: grobian
2 Date: 2010-02-04 19:03:41 +0000 (Thu, 04 Feb 2010)
3 New Revision: 15319
4
5 Modified:
6 main/branches/prefix/pym/portage/versions.py
7 Log:
8 fix backtrace with -r0 revisions, by Paul Varner, bug #303145
9
10 Modified: main/branches/prefix/pym/portage/versions.py
11 ===================================================================
12 --- main/branches/prefix/pym/portage/versions.py 2010-02-03 20:51:19 UTC (rev 15318)
13 +++ main/branches/prefix/pym/portage/versions.py 2010-02-04 19:03:41 UTC (rev 15319)
14 @@ -212,6 +212,7 @@
15 r3 = 0
16 else:
17 r1 = 0
18 + r3 = 0
19 if match2.group(10):
20 if match2.group(10)[0] == '0' and '.' in match2.group(10):
21 t = match2.group(10)[1:].split(".")
22 @@ -222,6 +223,7 @@
23 r4 = 0
24 else:
25 r2 = 0
26 + r4 = 0
27 if r1 == r2 and (r3 != 0 or r4 != 0):
28 r1 = r3
29 r2 = r4