From: Zac Medico Date: Sun, 4 Nov 2007 03:33:32 +0000 (-0000) Subject: Generate a usage.obsolete warning whenever X-Git-Tag: v2.1.3.19~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fe71badde39c7055132a0f5cb0a6a4a3bf5d006f;p=portage.git Generate a usage.obsolete warning whenever -* is found in KEYWORDS. (trunk r8414) svn path=/main/branches/2.1.2/; revision=8415 --- 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: