if portage.mtimedb.has_key("resume"):
del portage.mtimedb["resume"]
- if "--pretend" not in self.myopts:
- if "--fetchonly" not in self.myopts and \
- "--fetch-all-uri" not in self.myopts:
- if (mergecount>0):
- if retval:
- portage.env_update(
- target_root=self.settings["ROOT"],
- prev_mtimes=ldpath_mtimes)
-
#by doing an exit this way, --fetchonly can continue to try to
#fetch everything even if a particular download fails.
if "--fetchonly" in self.myopts or "--fetch-all-uri" in self.myopts:
emergelog(xterm_titles, " !!! unmerge FAILURE: "+y)
else:
emergelog(xterm_titles, " >>> unmerge success: "+y)
- #run ldconfig, etc...
- portage.env_update(
- target_root=settings["ROOT"],
- prev_mtimes=ldpath_mtimes)
return 1
self.contentscache=pkgfiles
return pkgfiles
- def unmerge(self,pkgfiles=None,trimworld=1,cleanup=1):
- global db, dircache
+ def unmerge(self, pkgfiles=None, trimworld=1, cleanup=1,
+ ldpath_mtimes=None):
+ global dircache
dircache={}
self.lockdb()
tree="vartree", mydbapi=self.vartree.dbapi,
vartree=self.vartree)
self.unlockdb()
+ env_update(self.myroot, prev_mtimes=ldpath_mtimes)
def isowner(self,filename,destroot):
""" check if filename is a new file or belongs to this package