From: Zac Medico Date: Sun, 22 Apr 2012 21:10:07 +0000 (-0700) Subject: repoman: cleanup code for KEYWORDS.invalid X-Git-Tag: v2.2.0_alpha101~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7c46fe043747de8663908a07f09edb9f184244e7;p=portage.git repoman: cleanup code for KEYWORDS.invalid --- diff --git a/bin/repoman b/bin/repoman index eedb5885b..606f1d64d 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1965,12 +1965,12 @@ for x in effective_scanlist: #keyword checks myuse = myaux["KEYWORDS"].split() for mykey in myuse: - myskey=mykey[:] - if myskey[0]=="-": - myskey=myskey[1:] - if myskey[0]=="~": - myskey=myskey[1:] if mykey not in ("-*", "*", "~*"): + myskey = mykey + if myskey[:1] == "-": + myskey = myskey[1:] + if myskey[:1] == "~": + myskey = myskey[1:] if myskey not in kwlist: stats["KEYWORDS.invalid"] += 1 fails["KEYWORDS.invalid"].append(x+"/"+y+".ebuild: %s" % mykey)