1 |
Author: zmedico |
2 |
Date: 2008-07-31 12:58:57 +0000 (Thu, 31 Jul 2008) |
3 |
New Revision: 11300 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/sets/dbapi.py |
7 |
Log: |
8 |
Fix DowngradeSet so it's safe for cases when no ebuild is available. |
9 |
|
10 |
|
11 |
Modified: main/trunk/pym/portage/sets/dbapi.py |
12 |
=================================================================== |
13 |
--- main/trunk/pym/portage/sets/dbapi.py 2008-07-31 12:47:17 UTC (rev 11299) |
14 |
+++ main/trunk/pym/portage/sets/dbapi.py 2008-07-31 12:58:57 UTC (rev 11300) |
15 |
@@ -130,6 +130,8 @@ |
16 |
slot, = aux_get(cpv, aux_keys) |
17 |
slot_atom = "%s:%s" % (cp, slot) |
18 |
ebuild = xmatch(xmatch_level, slot_atom) |
19 |
+ if not ebuild: |
20 |
+ continue |
21 |
ebuild_split = catpkgsplit(ebuild)[1:] |
22 |
installed_split = catpkgsplit(cpv)[1:] |
23 |
if pkgcmp(installed_split, ebuild_split) > 0: |