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 <robin@catalyst.net.nz>

Made a minor change to print the command, add a newline.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Jonathan Druart 2015-04-01 11:35:55 +02:00 committed by Tomas Cohen Arazi
parent 85a0f6a42f
commit 2e1c031ea0
1 changed files with 1 additions and 1 deletions

View File

@ -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 {