# @FUNCTION: java-pkg-2_supports-test # @INTERNAL # @DESCRIPTION: # test whether a build.xml has a test target. java-pkg-2_supports-test() { python << EOF from xml.dom.minidom import parse import sys dom = parse("${1}") for elem in dom.getElementsByTagName('target'): if elem.getAttribute('name') == 'test': sys.exit(0) sys.exit(1) EOF return $? } As per bug 479838 and explained by mgorny, this shouldn't be allowed. Reproducible: Always
Created attachment 405254 [details, diff] java-pkg-2_supports-test.patch How about this? Please ack and I'll get it merged.
LGTM. Go ahead.
Merged.