From ebee561758d81d7f3376ce316ff2ea9b6ae13c77 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 18 Aug 2010 06:36:21 -0700 Subject: * 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. --- bin/repoman | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bin/repoman') 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( -- cgit v1.2.3-1-g7c22