From fe71badde39c7055132a0f5cb0a6a4a3bf5d006f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 4 Nov 2007 03:33:32 +0000 Subject: [PATCH] Generate a usage.obsolete warning whenever -* is found in KEYWORDS. (trunk r8414) svn path=/main/branches/2.1.2/; revision=8415 --- bin/repoman | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/repoman b/bin/repoman index 0fca1f015..d1445d3d5 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1280,9 +1280,12 @@ for x in scanlist: " ".join(stable_keywords)) # KEYWORDS="-*" is a stupid replacement for package.mask and screws general KEYWORDS semantics - if "-*" in myaux["KEYWORDS"].split(): + if "-*" in keywords: + stats["usage.obsolete"] += 1 + fails["usage.obsolete"].append( + x+'/'+y+'.ebuild: KEYWORDS contain -*') haskeyword = False - for kw in myaux["KEYWORDS"].split(): + for kw in keywords: if kw[0] == "~": kw = kw[1:] if kw in kwlist: -- 2.26.2