since that should be enough (no need for separate reset or reload calls).
(trunk r13170)
svn path=/main/branches/2.1.6/; revision=13171
def _start(self):
settings = self.settings
- settings.reset()
+ settings.setcpv(self.cpv)
ebuild_path = self.ebuild_path
debug = settings.get("PORTAGE_DEBUG") == "1"
master_fd = None
tmpdir = mysettings["PORTAGE_TMPDIR"]
if mycpv != mysettings.mycpv:
- # Reload env.d variables and reset any previous settings.
- mysettings.reload()
- mysettings.reset()
if mydo == 'depend':
# Don't pass in mydbapi here since the resulting aux_get
# call would lead to infinite 'depend' phase recursion.
mysettings.setcpv(mycpv)
else:
+ # Reload env.d variables and reset any previous settings.
+ mysettings.reload()
+ mysettings.reset()
mysettings.setcpv(mycpv, mydb=mydbapi)
# config.reset() might have reverted a change made by the caller,
writemsg("doregen: %s %s\n" % (doregen, mycpv), 2)
writemsg("Generating cache entry(0) for: "+str(myebuild)+"\n", 1)
- self.doebuild_settings.reset()
+ self.doebuild_settings.setcpv(mycpv)
mydata = {}
myret = doebuild(myebuild, "depend",
self.doebuild_settings["ROOT"], self.doebuild_settings,