From f34d8a347c1af7e6363d7eeab001f44087794bd3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 1 Apr 2015 11:35:55 +0200 Subject: [PATCH] Bug 8050: Die if package building fails The debian/build-git-snapshot script should not return success if an error occurred. Note that sys_command_output won't raise an error if something fails. --- debian/build-git-snapshot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/build-git-snapshot b/debian/build-git-snapshot index a2a0e9f..2e2c481 100755 --- a/debian/build-git-snapshot +++ b/debian/build-git-snapshot @@ -62,7 +62,7 @@ sub sys_command_output_screen { my ($command) = @_; print "$command\n" if $debug; - system($command); + system($command) == 0 or die "Command returns an error ($?)"; } sub everything_is_committed { -- 2.1.0