]> git.donarmstrong.com Git - debhelper.git/commitdiff
Fix build system auto-selection breakage.
authorCyril Brulebois <kibi@debian.org>
Thu, 19 Nov 2009 02:33:52 +0000 (03:33 +0100)
committerJoey Hess <joey@gnu.kitenet.net>
Thu, 19 Nov 2009 16:51:54 +0000 (11:51 -0500)
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>
Debian/Debhelper/Buildsystem/ant.pm

index 938fb446216bee8b1d2b481a2ebd091cd2a7ffd4..52def4f61277aa0b67db46956586aa14ba028fd5 100644 (file)
@@ -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 {