diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-28 15:44:30 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-28 15:47:29 +0000 |
commit | 46e2ba3bbf63645e8861adff7b37a2486523b2af (patch) | |
tree | df77d3da69385ca19d1fff1b4fc2859c08a541dd | |
parent | c0fc2f8416a8841d6caa0602431dbfaf7a12db32 (diff) | |
download | openembedded-core-master-next.tar.gz |
scripts/bitbake-prserv-tool: Fix to work with memres bitbakemaster-next
There are a couple of problems. Firstly the script deletes data files
when memory resident bitbake may be running. Secondly, it also deletes
other data files and the entire cache directory.
Make sure memory resident bitbake is stopped if present and make
the file deletions a little more specific and safer.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | scripts/bitbake-prserv-tool | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/bitbake-prserv-tool b/scripts/bitbake-prserv-tool index bed97bd8ac..0a6ab6789c 100755 --- a/scripts/bitbake-prserv-tool +++ b/scripts/bitbake-prserv-tool @@ -17,8 +17,10 @@ help () clean_cache() { s=`bitbake -e | grep ^CACHE= | cut -f2 -d\"` + # Stop any active memory resident server + bitbake -m if [ "x${s}" != "x" ]; then - rm -rf ${s} + rm -f ${s}/prserv.sqlite3 fi } @@ -62,7 +64,7 @@ do_migrate_localcount () return 1 fi - rm -rf $df + rm -f $df clean_cache echo "Exporting LOCALCOUNT to AUTOINCs..." bitbake -R conf/migrate_localcount.conf -p |