commit:     693f6bf5a54e2424e2ad49e1838b61f76bf78e40
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 18 15:50:43 2021 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Fri Jun 18 15:51:58 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=693f6bf5

OwnerSet: fix inverted exclude_paths condition

Bug: https://bugs.gentoo.org/796584
Fixes: 38d3ff6abba5 ("OwnerSet: handle missing or empty exclude-files parameter 
(bug 796584)")
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

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

diff --git a/lib/portage/_sets/dbapi.py b/lib/portage/_sets/dbapi.py
index 60b26d17c..8e1f19979 100644
--- a/lib/portage/_sets/dbapi.py
+++ b/lib/portage/_sets/dbapi.py
@@ -86,7 +86,7 @@ class OwnerSet(PackageSet):
                exclude_paths = expanded_exclude_paths
 
                pkg_str = vardb._pkg_str
-               if exclude_paths:
+               if not exclude_paths:
                        for link, p in vardb._owners.iter_owners(paths):
                                pkg = pkg_str(link.mycpv, None)
                                rValue.add("%s:%s" % (pkg.cp, pkg.slot))

Reply via email to