From: Cyril Brulebois Date: Thu, 19 Nov 2009 02:33:52 +0000 (+0100) Subject: Fix build system auto-selection breakage. X-Git-Tag: 7.4.5~1 X-Git-Url: https://git.donarmstrong.com/?p=debhelper.git;a=commitdiff_plain;h=725a4d769be1573cca18ced3581a55ef906235ff 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 --- diff --git a/Debian/Debhelper/Buildsystem/ant.pm b/Debian/Debhelper/Buildsystem/ant.pm index 938fb44..52def4f 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 {