[oe-commits] [openembedded-core] 06/38: devtool: deploy-target: Let script continue even if rm fails

git at git.openembedded.org git at git.openembedded.org
Sat Jun 3 22:46:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit db54c9a22a9b66c673df8e836de5e47fc9edda0b
Author: Daniel Lublin <daniel at lublin.se>
AuthorDate: Tue May 30 13:17:59 2017 +0200

    devtool: deploy-target: Let script continue even if rm fails
    
    The remote script is run with `set -e`, so doing rm without -f on a
    $file that is already gone will exit the whole script, failing any
    redeployment. Assume a use case where packages sometimes produces
    certain test binaries stored on volatile media (tmpfs), and where the
    system is occasionally rebooted.
    
    Signed-off-by: Daniel Lublin <daniel at lublin.se>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 scripts/lib/devtool/deploy.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/devtool/deploy.py b/scripts/lib/devtool/deploy.py
index d181135..04c34cb 100644
--- a/scripts/lib/devtool/deploy.py
+++ b/scripts/lib/devtool/deploy.py
@@ -64,7 +64,7 @@ def _prepare_remote_script(deploy, verbose=False, dryrun=False, undeployall=Fals
         lines.append('                rmdir $file > /dev/null 2>&1 || true')
         lines.append('            fi')
         lines.append('        else')
-        lines.append('            rm $file')
+        lines.append('            rm -f $file')
         lines.append('        fi')
     lines.append('    done')
     if not dryrun:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list