self.user_profile_dir = None
self.local_config = local_config
+ self._use_wildcards = False
if clone:
self.incrementals = copy.deepcopy(clone.incrementals)
self._accept_license = copy.deepcopy(clone._accept_license)
self._plicensedict = copy.deepcopy(clone._plicensedict)
+ self._use_wildcards = copy.deepcopy(clone._use_wildcards)
else:
# backupenv is for calculated incremental variables.
if not self.pusedict.has_key(cp):
self.pusedict[cp] = {}
self.pusedict[cp][key] = pusedict[key]
+ if not self._use_wildcards:
+ for x in pusedict[key]:
+ if x.endswith("_*"):
+ self._use_wildcards = True
+ break
#package.keywords
pkgdict = grabdict_package(
self.configdict["pkg"]["USE"] = self.puse[:] # this gets appended to USE
if iuse != self.configdict["pkg"].get("IUSE",""):
self.configdict["pkg"]["IUSE"] = iuse
- has_changed = True
+ if self._use_wildcards:
+ # Without this conditional, regenerate() would be called
+ # *every* time.
+ has_changed = True
# CATEGORY is essential for doebuild calls
self.configdict["pkg"]["CATEGORY"] = mycpv.split("/")[0]
if has_changed:
has_wildcard = "*" in var_split
if has_wildcard:
var_split = [ x for x in var_split if x != "*" ]
+ self._use_wildcards = True
has_iuse = False
for x in iuse:
if x.startswith(prefix):