1 |
Author: zmedico |
2 |
Date: 2008-04-01 21:58:37 +0000 (Tue, 01 Apr 2008) |
3 |
New Revision: 9672 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/__init__.py |
7 |
Log: |
8 |
Use pkgcmp() instead of == and best() for correctness in case of implicit |
9 |
-r0. |
10 |
|
11 |
|
12 |
Modified: main/trunk/pym/portage/__init__.py |
13 |
=================================================================== |
14 |
--- main/trunk/pym/portage/__init__.py 2008-04-01 18:45:04 UTC (rev 9671) |
15 |
+++ main/trunk/pym/portage/__init__.py 2008-04-01 21:58:37 UTC (rev 9672) |
16 |
@@ -5451,8 +5451,10 @@ |
17 |
for myslot in intersecting_slots: |
18 |
myversion = versions[myslot] |
19 |
o_version = o_versions[myslot] |
20 |
- if myversion != o_version: |
21 |
- if myversion == best([myversion, o_version]): |
22 |
+ difference = pkgcmp(catpkgsplit(myversion)[1:], |
23 |
+ catpkgsplit(o_version)[1:]) |
24 |
+ if difference: |
25 |
+ if difference > 0: |
26 |
has_upgrade = True |
27 |
else: |
28 |
has_downgrade = True |
29 |
|
30 |
-- |
31 |
gentoo-commits@l.g.o mailing list |