From: Jonathan Druart Date: Wed, 1 Apr 2015 09:35:55 +0000 (+0200) Subject: Bug 8050: Die if package building fails X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=2e1c031ea0a779a6a4f9b58bf1b15db4b9056fd4;p=koha.git 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. Signed-off-by: Robin Sheat Made a minor change to print the command, add a newline. Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- diff --git a/debian/build-git-snapshot b/debian/build-git-snapshot index a2a0e9f86f..2d13f777a0 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 '$command' returns an error ($?)\n"; } sub everything_is_committed {