The following commit has been merged in the master branch:
commit ca265a061beffcb081d91189d7020bab80b9292f
Author: Felipe Sateler <[email protected]>
Date: Fri Feb 25 20:51:45 2011 -0300
Abort mk-build-deps if installation of package fails
Signed-off-by: James Vega <[email protected]>
diff --git a/scripts/mk-build-deps.pl b/scripts/mk-build-deps.pl
index 23c357a..6f303e4 100755
--- a/scripts/mk-build-deps.pl
+++ b/scripts/mk-build-deps.pl
@@ -256,11 +256,15 @@ if ($opt_install) {
if($root_cmd) {
system shellwords($root_cmd), 'dpkg', '--unpack', @deb_files;
+ die("dpkg call failed\n") if ( ($?>>8) != 0 );
system shellwords($root_cmd), shellwords($install_tool), '-f',
'install';
+ die("install call failed\n") if ( ($?>>8) != 0 );
}
else {
system 'dpkg', '--unpack', @deb_files;
+ die("dpkg call failed\n") if ( ($?>>8) != 0 );
system shellwords($install_tool), '-f', 'install';
+ die("install call failed\n") if ( ($?>>8) != 0 );
}
if ($opt_remove) {
--
Git repository for devscripts
--
To unsubscribe, send mail to [email protected].