pkgcore.restrictions.util module¶
restriction related utilities
- pkgcore.restrictions.util.collect_package_restrictions(restrict, attrs=None, invert=False)[source]¶
Collect PackageRestriction instances inside a restriction.
- Parameters:
restrict – package instance to scan
attrs – None (return all package restrictions), or a sequence of specific attrs the package restriction must work against.