From: David James Date: Sun, 8 May 2011 07:26:42 +0000 (-0700) Subject: Fix typos in unmerge function. X-Git-Tag: v2.2.0_alpha32~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=05b16b9d1c4eacc3442b78152f46f5d07943de97;p=portage.git Fix typos in unmerge function. BUG=none TEST=Try unmerging some packages. Change-Id: Ib643ec95b8da14b49a6b519e445fe57f8995c52c --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 92c467d43..a4a420328 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -4071,18 +4071,18 @@ def unmerge(cat, pkg, myroot=None, settings=None, mylink = dblink(cat, pkg, settings=settings, treetype="vartree", vartree=vartree, scheduler=scheduler) vartree = mylink.vartree - parallel_install = "parallel-install" in self.settings.features + parallel_install = "parallel-install" in settings.features if not parallel_install: - self.lockdb() + mylink.lockdb() try: if mylink.exists(): retval = mylink.unmerge(ldpath_mtimes=ldpath_mtimes) if retval == os.EX_OK: - self.lockdb() + mylink.lockdb() try: mylink.delete() finally: - self.unlockdb() + mylink.unlockdb() return retval return os.EX_OK finally: @@ -4092,7 +4092,7 @@ def unmerge(cat, pkg, myroot=None, settings=None, else: vartree.dbapi._linkmap._clear_cache() if not parallel_install: - self.unlockdb() + mylink.unlockdb() def write_contents(contents, root, f): """