Skip to content

Commit eb6a62d

Browse files
committed
ProfilesCheck: fix handling of profiles with neg_action package
When a "packages" file under a profile declares "-*" (meaning to remove all defaults), pkgcore pushes a special token (`True`) into the packages set. This is taken by ProfileStack to clean up previous stack, but the check wasn't expecting this token. Fixes by adding skip for that token. Resolves: #577 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
1 parent a2358d6 commit eb6a62d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pkgcheck/checks/profiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def _use(self, filename, node, vals):
278278
)
279279
def _pkg_atoms(self, filename, node, vals):
280280
for x in iflatten_instance(vals, atom_cls):
281-
if not self.search_repo.match(x):
281+
if not isinstance(x, bool) and not self.search_repo.match(x):
282282
yield UnknownProfilePackage(pjoin(node.name, filename), x)
283283

284284
@verify_files(

0 commit comments

Comments
 (0)