From 225499a8a36604412c2de35c078861fb6547333f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 2 Dec 2007 09:13:48 +0000 Subject: [PATCH] Synchronize self-reinstallation logic so that emerge will always restart itself when dblink.merge() creates temporary copies of PORTAGE_{BIN,PYM}_PATH. (trunk r8803) svn path=/main/branches/2.1.2/; revision=8804 --- bin/emerge | 6 +----- pym/portage.py | 3 ++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/bin/emerge b/bin/emerge index 1ea9b8a00..096d08610 100755 --- a/bin/emerge +++ b/bin/emerge @@ -4064,11 +4064,7 @@ class MergeTask(object): # Figure out if we need a restart. mysplit=portage.pkgsplit(x[2]) if mysplit[0] == "sys-apps/portage" and x[1] == "/": - myver=mysplit[1]+"-"+mysplit[2] - if myver[-3:]=='-r0': - myver=myver[:-3] - if (myver != portage.VERSION) and \ - "livecvsportage" not in self.settings.features: + if "livecvsportage" not in self.settings.features: if len(mymergelist) > mergecount: emergelog(xterm_titles, " ::: completed emerge ("+ \ diff --git a/pym/portage.py b/pym/portage.py index f46276968..7bb53cc56 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -9214,7 +9214,8 @@ class dblink: """ if self.myroot == "/" and \ "sys-apps" == self.cat and \ - "portage" == pkgsplit(self.pkg)[0]: + "portage" == pkgsplit(self.pkg)[0] and \ + "livecvsportage" not in self.settings.features: settings = self.settings base_path_orig = os.path.dirname(settings["PORTAGE_BIN_PATH"]) from tempfile import mkdtemp -- 2.26.2