diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-23 17:48:34 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-23 17:48:34 +0000 |
commit | 706b85f0ee885804e0fd3ac1224d9bdab8f4bde9 (patch) | |
tree | 0ae42d47a04f1a3c6c5f77be65796c2aade918f5 | |
parent | 4b1f09672d2b245188cb0a0bb8c2c2ee99610411 (diff) | |
download | portage-706b85f0ee885804e0fd3ac1224d9bdab8f4bde9.tar.gz portage-706b85f0ee885804e0fd3ac1224d9bdab8f4bde9.tar.bz2 portage-706b85f0ee885804e0fd3ac1224d9bdab8f4bde9.zip |
Fix "TypeError: object of type 'filter' has no len()".
svn path=/main/trunk/; revision=14395
-rwxr-xr-x | bin/repoman | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/repoman b/bin/repoman index f9a62a1ca..faed9a2ba 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1497,8 +1497,8 @@ for x in scanlist: stats[m+".syntax"] += 1 fails[m+".syntax"].append(catpkg+".ebuild "+m+": "+b) - badlicsyntax = len(filter(lambda x:x=="LICENSE", type_list)) - badprovsyntax = len(filter(lambda x:x=="PROVIDE", type_list)) + badlicsyntax = len([x for x in type_list if x == "LICENSE"]) + badprovsyntax = len([x for x in type_list if x == "PROVIDE"]) baddepsyntax = len(type_list) != badlicsyntax + badprovsyntax badlicsyntax = badlicsyntax > 0 badprovsyntax = badprovsyntax > 0 |