From: Zac Medico Date: Tue, 29 Jul 2008 06:44:49 +0000 (-0000) Subject: Fix _use_dep.__str__() to work correctly in the case when conditional USE X-Git-Tag: v2.2_rc5~27 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3d709f2077b9d3c2d32c859c1f4210d896fcdb20;p=portage.git Fix _use_dep.__str__() to work correctly in the case when conditional USE deps have evaluated to nothing (empty string rather than []). Thanks to ABCD for reporting. svn path=/main/trunk/; revision=11257 --- diff --git a/pym/portage/dep.py b/pym/portage/dep.py index ba22a2b2a..54f039a38 100644 --- a/pym/portage/dep.py +++ b/pym/portage/dep.py @@ -396,6 +396,8 @@ class _use_dep(object): break def __str__(self): + if not self.tokens: + return "" return "[%s]" % (",".join(self.tokens),) def evaluate_conditionals(self, use):