1 |
commit: 693f6bf5a54e2424e2ad49e1838b61f76bf78e40 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 18 15:50:43 2021 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 18 15:51:58 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=693f6bf5 |
7 |
|
8 |
OwnerSet: fix inverted exclude_paths condition |
9 |
|
10 |
Bug: https://bugs.gentoo.org/796584 |
11 |
Fixes: 38d3ff6abba5 ("OwnerSet: handle missing or empty exclude-files parameter (bug 796584)") |
12 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
13 |
|
14 |
lib/portage/_sets/dbapi.py | 2 +- |
15 |
1 file changed, 1 insertion(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/lib/portage/_sets/dbapi.py b/lib/portage/_sets/dbapi.py |
18 |
index 60b26d17c..8e1f19979 100644 |
19 |
--- a/lib/portage/_sets/dbapi.py |
20 |
+++ b/lib/portage/_sets/dbapi.py |
21 |
@@ -86,7 +86,7 @@ class OwnerSet(PackageSet): |
22 |
exclude_paths = expanded_exclude_paths |
23 |
|
24 |
pkg_str = vardb._pkg_str |
25 |
- if exclude_paths: |
26 |
+ if not exclude_paths: |
27 |
for link, p in vardb._owners.iter_owners(paths): |
28 |
pkg = pkg_str(link.mycpv, None) |
29 |
rValue.add("%s:%s" % (pkg.cp, pkg.slot)) |