repoman: Let repoman check for flags missing from IUSE
authorSebastian Luther <SebastianLuther@gmx.de>
Tue, 24 Aug 2010 09:04:25 +0000 (11:04 +0200)
committerZac Medico <zmedico@gentoo.org>
Tue, 24 Aug 2010 13:08:07 +0000 (06:08 -0700)
bin/repoman

index 3b28bf5be0e8dcf8fa161f2ca11fb3fb32b2e13e..039a995abcc1531f13e93b7e363c72e1952ba34c 100755 (executable)
@@ -1623,7 +1623,8 @@ for x in scanlist:
                                token_class=portage.dep.Atom
 
                        try:
-                               atoms = portage.dep.use_reduce(mydepstr, matchall=1, flat=True, token_class=token_class)
+                               atoms = portage.dep.use_reduce(mydepstr, matchall=1, flat=True, \
+                                       is_valid_flag=lambda x: x in myiuse, token_class=token_class)
                        except portage.exception.InvalidDependString as e:
                                atoms = None
                                badsyntax.append(str(e))