[arch-projects] [PATCH] Check java packages dependency on java-runtime-headless
Java packages should be checked against java-runtime-headless rather than the whole java-environment as most of them will only need the 'java' binary instead of the whole 'javac' & Al. stuff. Signed-off-by: Guillaume ALAUX <guillaume@archlinux.org> --- Namcap/rules/javafiles.py | 4 ++-- namcap-tags | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Namcap/rules/javafiles.py b/Namcap/rules/javafiles.py index 3f93fa3..f83abb7 100644 --- a/Namcap/rules/javafiles.py +++ b/Namcap/rules/javafiles.py @@ -43,7 +43,7 @@ class JavaFiles(TarballRule): #self.infos.append( ('java-class-file-found %s', entry.name) ) f.close() if len(javas) > 0: - reasons = pkginfo.detected_deps.setdefault('java-environment', []) - reasons.append( ('java-environment-needed %s', ', '.join(javas)) ) + reasons = pkginfo.detected_deps.setdefault('java-runtime-headless', []) + reasons.append( ('java-runtime-headless-needed %s', ', '.join(javas)) ) # vim: set ts=4 sw=4 noet: diff --git a/namcap-tags b/namcap-tags index 818c7a5..0330a2f 100644 --- a/namcap-tags +++ b/namcap-tags @@ -94,6 +94,6 @@ hicolor-icon-theme-needed-for-hicolor-dir :: needed for hicolor theme hierarchy shared-mime-info-needed :: needed for update-mime-database desktop-file-utils-needed :: needed for update-desktop-database kdebase-runtime-needed %s :: needed for programs %s -java-environment-needed %s :: found class files %s +java-runtime-headless-needed %s :: found class files %s libraries-needed %s %s :: libraries %s needed in files %s programs-needed %s %s :: programs %s needed in scripts %s -- 1.7.10.3
participants (1)
-
Guillaume ALAUX