Workaround random application_dir removal failure 64/113064/1
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Wed, 23 Sep 2020 13:50:15 +0000 (15:50 +0200)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Wed, 23 Sep 2020 13:50:15 +0000 (15:50 +0200)
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>
build/package.py

index 9e37d4b..c3d89d3 100755 (executable)
@@ -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():