From dac0dda2a563d22c4507fd7a463a53a06256f73f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 24 Apr 2008 03:17:26 +0000 Subject: [PATCH] Fix interaction between automatic uninstall and options like --pretend, --fetchonly, and --buildpkgonly. svn path=/main/trunk/; revision=9956 --- pym/_emerge/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 43f57349a..99e8b5a64 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -4870,6 +4870,7 @@ class MergeTask(object): def _merge(self, mylist, favorites, mtimedb): from portage.elog import elog_process from portage.elog.filtering import filter_mergephases + buildpkgonly = "--buildpkgonly" in self.myopts failed_fetches = [] fetchonly = "--fetchonly" in self.myopts or \ "--fetch-all-uri" in self.myopts @@ -5021,7 +5022,8 @@ class MergeTask(object): cpv=pkg_key, built=built, installed=installed, metadata=metadata) if pkg.installed: - self._uninstall_queue.append(pkg) + if not (buildpkgonly or fetchonly or pretend): + self._uninstall_queue.append(pkg) continue if x[0]=="blocks": -- 2.26.2