proj/portage:master commit in: lib/portage/dbapi/, lib/_emerge/

"Matt Turner" <[email protected]>
Newsgroups gmane.linux.gentoo.cvs
Message-ID <1786672956.3084f9316ee1dfc5d962839f540517acccf6761a.mattst88@gentoo>
commit:     3084f9316ee1dfc5d962839f540517acccf6761a
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Wed Jul  1 03:34:40 2026 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Fri Aug 14 02:02:36 2026 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=3084f931

vartree: remove flush_cache() stub and its call sites

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 lib/_emerge/FakeVartree.py   | 2 --
 lib/_emerge/unmerge.py       | 1 -
 lib/portage/dbapi/vartree.py | 3 ---
 3 files changed, 6 deletions(-)

diff --git a/lib/_emerge/FakeVartree.py b/lib/_emerge/FakeVartree.py
index 07ff815e4..b6a68df99 100644
--- a/lib/_emerge/FakeVartree.py
+++ b/lib/_emerge/FakeVartree.py
@@ -273,8 +273,6 @@ class FakeVartree(vartree):
             slot_counters[pkg.slot_atom] = pkg.counter
             pkg_vardb.cpv_inject(pkg)
 
-        real_vardb.flush_cache()
-
     def _pkg(self, cpv):
         """
         The RootConfig instance that will become the Package.root_config

diff --git a/lib/_emerge/unmerge.py b/lib/_emerge/unmerge.py
index e8a31b7c5..452e3f714 100644
--- a/lib/_emerge/unmerge.py
+++ b/lib/_emerge/unmerge.py
@@ -326,7 +326,6 @@ def _unmerge_display(
             return 1, {}
     finally:
         if vdb_lock:
-            vartree.dbapi.flush_cache()
             vartree.dbapi.unlock()
 
     # generate a list of package sets that are directly or indirectly listed in "selected",

diff --git a/lib/portage/dbapi/vartree.py b/lib/portage/dbapi/vartree.py
index 3c7951648..bf3f6902e 100644
--- a/lib/portage/dbapi/vartree.py
+++ b/lib/portage/dbapi/vartree.py
@@ -806,9 +806,6 @@ class vardbapi(dbapi):
 
         return self.getpath(str(mycpv), filename=catsplit(mycpv)[1] + ".ebuild")
 
-    def flush_cache(self):
-        pass
-
     @property
     def _aux_cache(self):
         if self._aux_cache_obj is None:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.