diff options
author | Alec Warner <antarus@gentoo.org> | 2006-02-22 21:20:16 +0000 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2006-02-22 21:20:16 +0000 |
commit | 41a69d45de09806b83ea62573a815e80601ca56d (patch) | |
tree | 1006a4cded4ad5fb68f341d5ccd01f69bd5cd2a9 | |
parent | 50c7cd7ee007e92f63ee8ef3be0ebb7a8a1e67de (diff) | |
download | portage-41a69d45de09806b83ea62573a815e80601ca56d.tar.gz portage-41a69d45de09806b83ea62573a815e80601ca56d.tar.bz2 portage-41a69d45de09806b83ea62573a815e80601ca56d.zip |
Suggestion from Brian Harring to remove extra processing, condense code.
svn path=/main/trunk/; revision=2762
-rwxr-xr-x | bin/repoman | 10 |
1 files changed, 1 insertions, 9 deletions
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"): |