summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-09-23 15:50:15 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-09-23 15:50:15 +0200
commit2240a2a1eb93442f7daa7171b1ff480087697673 (patch)
tree935633373fbe9ac8cce20903782d59919fd9b3af
parente2b009b1c28575e34904b9f2275ced1c4ec06fec (diff)
Workaround random application_dir removal failure
In cases where --output-dir is set to a directory on a NFS share shutil fails to remove the application_dir. This WO will silence errors from rmtree routine. Change-Id: I0c5d06982f0ba2eb5b15276890b474afc46894e0 Issue-ID: OOM-2577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
-rwxr-xr-xbuild/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/package.py b/build/package.py
index 9e37d4bf..c3d89d30 100755
--- a/build/package.py
+++ b/build/package.py
@@ -263,7 +263,7 @@ def build_offline_deliverables(build_version,
create_package(aux_content, aux_package_tar_path)
add_checksum_info(output_dir)
- shutil.rmtree(application_dir)
+ shutil.rmtree(application_dir, ignore_errors=True)
def run_cli():