summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Buildsystem/ant.pm
diff options
context:
space:
mode:
authorCyril Brulebois <kibi@debian.org>2009-11-19 03:33:52 +0100
committerJoey Hess <joey@gnu.kitenet.net>2009-11-19 11:51:54 -0500
commit725a4d769be1573cca18ced3581a55ef906235ff (patch)
tree22a919ed6d67b1671cbc69fee0802f2e2fa8fff7 /Debian/Debhelper/Buildsystem/ant.pm
parent0eed5884e3e476a4b0c69c68faf484186fc4a9da (diff)
Fix build system auto-selection breakage.
Probably due to an overlook in 758ce0bb1f, the '-e' test on build.xml disappeared, leading check_auto_buildable() to always return '1' for the ant build system. Signed-off-by: Cyril Brulebois <kibi@debian.org>
Diffstat (limited to 'Debian/Debhelper/Buildsystem/ant.pm')
-rw-r--r--Debian/Debhelper/Buildsystem/ant.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Debian/Debhelper/Buildsystem/ant.pm b/Debian/Debhelper/Buildsystem/ant.pm
index 938fb446..52def4f6 100644
--- a/Debian/Debhelper/Buildsystem/ant.pm
+++ b/Debian/Debhelper/Buildsystem/ant.pm
@@ -14,7 +14,7 @@ sub DESCRIPTION {
sub check_auto_buildable {
my $this=shift;
- return $this->get_sourcepath("build.xml") ? 1 : 0;
+ return (-e $this->get_sourcepath("build.xml")) ? 1 : 0;
}
sub new {