core: fix exclusion of package when installing all packages
core: fix exclusion of package when installing all packages

Fixes #7059

tsonntag/dotemacs,tsonntag/dotemacs,tsonntag/dotemacs,tsonntag/dotemacs