diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-08-18 06:36:21 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-18 06:36:21 -0700 |
commit | ebee561758d81d7f3376ce316ff2ea9b6ae13c77 (patch) | |
tree | 72d458b2d93e7c8c41e3335e1f90c38aaa7a06d1 /bin | |
parent | 97d78cd3f204010a1cedef481a52829931435adc (diff) | |
download | portage-ebee561758d81d7f3376ce316ff2ea9b6ae13c77.tar.gz portage-ebee561758d81d7f3376ce316ff2ea9b6ae13c77.tar.bz2 portage-ebee561758d81d7f3376ce316ff2ea9b6ae13c77.zip |
* Replace config._iuse_implicit_re with a callable _iuse_implicit_match
object that simply returns boolean, and update consumers.
* Make check_required_use() take a callable for the iuse parameter,
and pass in Package.use.is_valid_flag or iuse.__contains__ as
appropriate.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/repoman | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/repoman b/bin/repoman index bfe126f18..4ba227397 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1780,9 +1780,8 @@ for x in scanlist: relative_path + ": REQUIRED_USE" + \ " not supported with EAPI='%s'" % (eapi,)) try: - iuse = repoman_settings._get_implicit_iuse() - iuse.update(myaux["IUSE"].split()) - portage.dep.check_required_use(required_use, "", iuse) + portage.dep.check_required_use(required_use, (), + pkg.iuse.is_valid_flag) except portage.exception.InvalidDependString as e: stats["REQUIRED_USE.syntax"] = stats["REQUIRED_USE.syntax"] + 1 fails["REQUIRED_USE.syntax"].append( |