commit:     6293f7ba670fbfae5fd4bb6f4ba9fe3f822d19c3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 23 22:49:29 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep 23 22:49:49 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=6293f7ba

vartree: fix syntax

Fixes: 1fc674667de01944269dfeccd70472facf83e7ba
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 878914ef06..d4b510082c 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() if not pkgfiles
+        pkgfiles = pkgfiles if pkgfiles else self.getcontents()
         if pkgfiles:
             self.updateprotect()
             mykeys = list(pkgfiles)

Reply via email to