Copy logs to dist directory even on success.
Hard to figure out what's failing when we don't know what success
looks like...
Test: None
Bug: None
Change-Id: I567eda8750ee2ff4059fe00f927718158672e3ce
diff --git a/do_build.py b/do_build.py
index 1067c99..3490ba4 100755
--- a/do_build.py
+++ b/do_build.py
@@ -274,10 +274,8 @@
install_timer = ndk.timer.Timer()
with install_timer:
install(args.jobs, args.arch, args.host, install_dir)
- except subprocess.CalledProcessError:
- copy_logs_to_dist_dir(Path(build_dir), Path(dist_dir) / 'logs')
- raise
finally:
+ copy_logs_to_dist_dir(Path(build_dir), Path(dist_dir) / 'logs')
chdir(orig_dir)
package_timer = ndk.timer.Timer()