commit:     1fc674667de01944269dfeccd70472facf83e7ba
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 23 22:38:23 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep 23 22:38:31 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=1fc67466

vartree: don't clobber pkgfiles

Fixes: 743722ccfa234dd9d4a54f7fbfb14cc2ddf6f0f4
Signed-off-by: Sam James <sam <AT> gentoo.org>

 lib/portage/dbapi/vartree.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/portage/dbapi/vartree.py b/lib/portage/dbapi/vartree.py
index 35a401b33c..878914ef06 100644
--- a/lib/portage/dbapi/vartree.py
+++ b/lib/portage/dbapi/vartree.py
@@ -2687,7 +2687,7 @@ class dblink:
         unmerge_orphans = "unmerge-orphans" in self.settings.features
         calc_prelink = "prelink-checksums" in self.settings.features
 
-        pkgfiles = self.getcontents()
+        pkgfiles = self.getcontents() if not pkgfiles
         if pkgfiles:
             self.updateprotect()
             mykeys = list(pkgfiles)

Reply via email to