From 706b85f0ee885804e0fd3ac1224d9bdab8f4bde9 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Wed, 23 Sep 2009 17:48:34 +0000 Subject: [PATCH] Fix "TypeError: object of type 'filter' has no len()". svn path=/main/trunk/; revision=14395 --- bin/repoman | 4 ++-- 1 file 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 -- 2.26.2