summaryrefslogtreecommitdiff
path: root/morphlib/buildcommand.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/buildcommand.py')
-rw-r--r--morphlib/buildcommand.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py
index fe6e0721..32c740a4 100644
--- a/morphlib/buildcommand.py
+++ b/morphlib/buildcommand.py
@@ -274,8 +274,12 @@ class BuildCommand(object):
use_chroot,
extra_env=extra_env,
extra_path=extra_path)
- self.install_fillers(staging_area)
- self.install_dependencies(staging_area, deps, artifact)
+ try:
+ self.install_fillers(staging_area)
+ self.install_dependencies(staging_area, deps, artifact)
+ except BaseException:
+ staging_area.abort()
+ raise
else:
staging_area = self.create_staging_area(build_env, False)