Generate a usage.obsolete warning whenever
authorZac Medico <zmedico@gentoo.org>
Sun, 4 Nov 2007 03:32:29 +0000 (03:32 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 4 Nov 2007 03:32:29 +0000 (03:32 -0000)
-* is found in KEYWORDS.

svn path=/main/trunk/; revision=8414

bin/repoman

index 0da141034ef570ec40b59e9491f017e74b488971..27e6dfb119d59c547caf0556b996d94b63d1724a 100755 (executable)
@@ -1178,9 +1178,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: