From 41a69d45de09806b83ea62573a815e80601ca56d Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Wed, 22 Feb 2006 21:20:16 +0000 Subject: Suggestion from Brian Harring to remove extra processing, condense code. svn path=/main/trunk/; revision=2762 --- bin/repoman | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'bin/repoman') diff --git a/bin/repoman b/bin/repoman index b94c6459e..c68beb68e 100755 --- a/bin/repoman +++ b/bin/repoman @@ -972,7 +972,7 @@ for x in scanlist: fails["ebuild.namenomatch"].append(x+"/"+y+".ebuild") continue try: - myaux=portage.db["/"]["porttree"].dbapi.aux_get(catdir+"/"+y,allvars) + myaux = dict( zip(allvars, portage.db["/"]["porttree"].dbapi.aux_get(catdir+"/"+y, allvars ) ) except KeyError: stats["ebuild.syntax"]=stats["ebuild.syntax"]+1 fails["ebuild.syntax"].append(x+"/"+y+".ebuild") @@ -982,14 +982,6 @@ for x in scanlist: fails["ebuild.output"].append(x+"/"+y+".ebuild") continue - mynewaux = {} - for idx in range(len(allvars)): - if idx < len(myaux): - mynewaux[allvars[idx]] = myaux[idx] - else: - mynewaux[allvars[idx]] = "" - myaux = mynewaux - # Test for negative logic and bad words in the RESTRICT var. #for x in myaux[allvars.index("RESTRICT")].split(): # if x.startswith("no"): -- cgit v1.2.3-1-g7c22