diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-07-29 06:44:49 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-07-29 06:44:49 +0000 |
commit | 3d709f2077b9d3c2d32c859c1f4210d896fcdb20 (patch) | |
tree | dae6c9a6dd30b2198e3387f3be8819c8df4e6275 | |
parent | 38b4058cedf12d3d21e82875c1187de4b16ff722 (diff) | |
download | portage-3d709f2077b9d3c2d32c859c1f4210d896fcdb20.tar.gz portage-3d709f2077b9d3c2d32c859c1f4210d896fcdb20.tar.bz2 portage-3d709f2077b9d3c2d32c859c1f4210d896fcdb20.zip |
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
-rw-r--r-- | pym/portage/dep.py | 2 |
1 files changed, 2 insertions, 0 deletions
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): |