1 |
Author: zmedico |
2 |
Date: 2008-07-29 06:44:49 +0000 (Tue, 29 Jul 2008) |
3 |
New Revision: 11257 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/dep.py |
7 |
Log: |
8 |
Fix _use_dep.__str__() to work correctly in the case when conditional USE |
9 |
deps have evaluated to nothing (empty string rather than []). Thanks to |
10 |
ABCD for reporting. |
11 |
|
12 |
|
13 |
Modified: main/trunk/pym/portage/dep.py |
14 |
=================================================================== |
15 |
--- main/trunk/pym/portage/dep.py 2008-07-29 00:46:54 UTC (rev 11256) |
16 |
+++ main/trunk/pym/portage/dep.py 2008-07-29 06:44:49 UTC (rev 11257) |
17 |
@@ -396,6 +396,8 @@ |
18 |
break |
19 |
|
20 |
def __str__(self): |
21 |
+ if not self.tokens: |
22 |
+ return "" |
23 |
return "[%s]" % (",".join(self.tokens),) |
24 |
|
25 |
def evaluate_conditionals(self, use): |