if not dep_string:
continue
- dep_string = portage.dep.paren_enclose(dep_string)
+ dep_string = portage.dep.paren_enclose(dep_string,
+ unevaluated_atom=True)
if not self._add_pkg_dep_string(
pkg, dep_root, dep_priority, dep_string,
"""
pkg, dep_root, dep_priority, dep_struct = \
self._dynamic_config._dep_disjunctive_stack.pop()
- dep_string = portage.dep.paren_enclose(dep_struct)
+ dep_string = portage.dep.paren_enclose(dep_struct,
+ unevaluated_atom=True)
if not self._add_pkg_dep_string(
pkg, dep_root, dep_priority, dep_string, allow_unsatisfied):
return 0
self._zap_parens(x, dest)
return dest
-def paren_enclose(mylist):
+def paren_enclose(mylist, unevaluated_atom=False):
"""
Convert a list to a string with sublists enclosed with parens.
if isinstance(x, list):
mystrparts.append("( "+paren_enclose(x)+" )")
else:
+ if unevaluated_atom:
+ x = getattr(x, 'unevaluated_atom', x)
mystrparts.append(x)
return " ".join(mystrparts)