aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-28 15:44:30 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-28 15:47:29 +0000
commit46e2ba3bbf63645e8861adff7b37a2486523b2af (patch)
treedf77d3da69385ca19d1fff1b4fc2859c08a541dd
parentc0fc2f8416a8841d6caa0602431dbfaf7a12db32 (diff)
downloadopenembedded-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-xscripts/bitbake-prserv-tool6
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