# if x.startswith("no"):
# print "Bad RESTRICT value: %s" % x
try:
- myaux["PROVIDE"] = portage.dep.use_reduce(
+ portage.dep.use_reduce(
portage.dep.paren_reduce(myaux["PROVIDE"]), matchall=1)
except portage.exception.InvalidDependString, e:
stats["PROVIDE.syntax"] = stats["PROVIDE.syntax"] + 1
fails["PROVIDE.syntax"].append(mykey+".ebuild PROVIDE: "+str(e))
del e
continue
- myaux["PROVIDE"] = " ".join(portage.flatten(myaux["PROVIDE"]))
+
+ # The Package class automatically evaluates USE conditionals.
for myprovide in myaux["PROVIDE"].split():
prov_cp = portage.dep_getkey(myprovide)
if prov_cp != myprovide:
if k in self._use_conditional_keys:
if '?' in v:
try:
- v = paren_enclose(paren_normalize(use_reduce(
- paren_reduce(v), uselist=self._pkg.use.enabled)))
+ if self._pkg.root_config.settings.local_config:
+ v = paren_enclose(paren_normalize(use_reduce(
+ paren_reduce(v), uselist=self._pkg.use.enabled)))
+ else:
+ v = paren_enclose(paren_normalize(use_reduce(
+ paren_reduce(v), matchall=1)))
except portage.exception.InvalidDependString:
# This error should already have been registered via
# self._pkg._invalid_metadata().