diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-11-04 03:33:32 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-11-04 03:33:32 +0000 |
commit | fe71badde39c7055132a0f5cb0a6a4a3bf5d006f (patch) | |
tree | eca1b5cc30b320f807527d2f51086a0f535c0fc5 /bin | |
parent | eed2cd2776e744ce2f66afd0383007927882c58e (diff) | |
download | portage-fe71badde39c7055132a0f5cb0a6a4a3bf5d006f.tar.gz portage-fe71badde39c7055132a0f5cb0a6a4a3bf5d006f.tar.bz2 portage-fe71badde39c7055132a0f5cb0a6a4a3bf5d006f.zip |
Generate a usage.obsolete warning whenever
-* is found in KEYWORDS. (trunk r8414)
svn path=/main/branches/2.1.2/; revision=8415
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/repoman | 7 |
1 files 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: |