<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/scripts/clean-hashserver-database, branch 5.3_M1</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=5.3_M1</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=5.3_M1'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2025-03-18T11:25:36+00:00</updated>
<entry>
<title>scripts: Add clean-hashserver-database script</title>
<updated>2025-03-18T11:25:36+00:00</updated>
<author>
<name>Alexandre Marques</name>
<email>c137.marques@gmail.com</email>
</author>
<published>2025-03-14T10:22:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=331aef4bcf3ad9bbeea25b3463219f46d46bd4a6'/>
<id>urn:sha1:331aef4bcf3ad9bbeea25b3463219f46d46bd4a6</id>
<content type='text'>
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
```

(From OE-Core rev: f6737c762ac11f7653a64fac58428428c4222d0f)

Signed-off-by: Alexander Marques &lt;c137.marques@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
