aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-10-22 21:33:30 +0200
committerAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-10-22 21:33:30 +0200
commite4a24c9707365357a1eebe308b77ed67ac245ef8 (patch)
tree98dc47fdc8109285dc24228fa79ca4d9857c2008
parent1d09a3c789371bb12f799b7ae8cb51b1c5e1579d (diff)
downloadpaludis-e4a24c9707365357a1eebe308b77ed67ac245ef8.tar.gz
paludis-e4a24c9707365357a1eebe308b77ed67ac245ef8.tar.xz
cave: Make pretend action properly abort
-rw-r--r--src/clients/cave/cmd_perform.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_perform.cc b/src/clients/cave/cmd_perform.cc
index 94bb1c8..f02ca44 100644
--- a/src/clients/cave/cmd_perform.cc
+++ b/src/clients/cave/cmd_perform.cc
@@ -422,6 +422,8 @@ PerformCommand::run(
));
PretendAction pretend_action(options);
execute(env, cmdline, id, action, pretend_action);
+ if (pretend_action.failed())
+ return EXIT_FAILURE;
}
else if (action == "uninstall")
{