]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
scripts: Add clean-hashserver-database script
authorAlexandre Marques <c137.marques@gmail.com>
Fri, 14 Mar 2025 10:22:12 +0000 (10:22 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 18 Mar 2025 11:24:39 +0000 (11:24 +0000)
commitf6737c762ac11f7653a64fac58428428c4222d0f
treea7b1db6d6624ae5979bbcc7741ab12391ba358f1
parente80d2ec5cda1121ba6b3d299fb2e79c194c7f30e
scripts: Add clean-hashserver-database script

Auxiliary script to clean the hashserver database based on the files
available in the sstate directory.

It makes used of the new "hashclient gc-mark-stream" command to mark all sstate
relevant hashes as "alive" and removes everything else from the
database.

Usage example:
```
./scripts/clean-hashserver-database \
    --sstate-dir ~/build/sstate-cache \
    --hashclient ./bitbake/bin/bitabke-hashclient \
    --hashserver-address "ws://localhost:8688/ws" \
    --mark "alive" \
    --threshold-age 60 \
    --clean-db
```

Signed-off-by: Alexander Marques <c137.marques@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/clean-hashserver-database [new file with mode: 0755]