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

svn path=/main/branches/2.1.2/; revision=8415

bin/repoman

index 0fca1f015bec2b7f24a0ae86f9a0d323653a7006..d1445d3d5264143e4275046c6588ac5b27e7ffa6 100755 (executable)
@@ -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: