From 7c46fe043747de8663908a07f09edb9f184244e7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 22 Apr 2012 14:10:07 -0700 Subject: [PATCH] repoman: cleanup code for KEYWORDS.invalid --- bin/repoman | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) -- 2.26.2