summaryrefslogtreecommitdiffstats
path: root/bin/repoman
diff options
context:
space:
mode:
authorRyan Hill <dirtyepic@gentoo.org>2010-11-13 04:09:56 -0800
committerZac Medico <zmedico@gentoo.org>2010-11-23 18:01:53 -0800
commitce123ef7fdca309114fc86d03d6dac6da610cf3d (patch)
treeaaf09c162c2186b0d650f14564cbcd3205ca5763 /bin/repoman
parentffd1c704bdcd8a51eb62f12a02ffbd26fc0da13c (diff)
downloadportage-ce123ef7fdca309114fc86d03d6dac6da610cf3d.tar.gz
portage-ce123ef7fdca309114fc86d03d6dac6da610cf3d.tar.bz2
portage-ce123ef7fdca309114fc86d03d6dac6da610cf3d.zip
repoman: add wxwidgets.eclassnotused (bug 305469)
Diffstat (limited to 'bin/repoman')
-rwxr-xr-xbin/repoman11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/repoman b/bin/repoman
index 6b1a62446..e6599bfa9 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -291,6 +291,7 @@ qahelp={
"inherit.autotools":"Ebuild inherits autotools but does not call eautomake, eautoconf or eautoreconf",
"inherit.deprecated":"Ebuild inherits a deprecated eclass",
"java.eclassesnotused":"With virtual/jdk in DEPEND you must inherit a java eclass",
+ "wxwidgets.eclassnotused":"Ebuild DEPENDs on x11-libs/wxGTK without inheriting wxwidgets.eclass",
"KEYWORDS.dropped":"Ebuilds that appear to have dropped KEYWORDS for some arch",
"KEYWORDS.missing":"Ebuilds that have a missing or empty KEYWORDS variable",
"KEYWORDS.stable":"Ebuilds that have been added directly with stable KEYWORDS",
@@ -404,6 +405,7 @@ qawarnings = set((
"inherit.autotools",
"inherit.deprecated",
"java.eclassesnotused",
+"wxwidgets.eclassnotused",
"metadata.warning",
"virtual.versioned",
"virtual.exists",
@@ -1628,6 +1630,7 @@ for x in scanlist:
inherited_java_eclass = "java-pkg-2" in inherited or \
"java-pkg-opt-2" in inherited
+ inherited_wxwidgets_eclass = "wxwidgets" in inherited
operator_tokens = set(["||", "(", ")"])
type_list, badsyntax = [], []
for mytype in ("DEPEND", "RDEPEND", "PDEPEND",
@@ -1664,6 +1667,14 @@ for x in scanlist:
atom.cp == "virtual/jdk":
stats['java.eclassesnotused'] += 1
fails['java.eclassesnotused'].append(relative_path)
+ elif mytype == "DEPEND" and \
+ not is_blocker and \
+ not inherited_wxwidgets_eclass and \
+ atom.cp == "x11-libs/wxGTK":
+ stats['wxwidgets.eclassnotused'] += 1
+ fails['wxwidgets.eclassnotused'].append(
+ relative_path + ": DEPENDs on x11-libs/wxGTK"
+ " without inheriting wxwidgets.eclass")
elif mytype in ("PDEPEND", "RDEPEND"):
if not is_blocker and \
atom.cp in suspect_rdepend: