]> code.ossystems Code Review - openembedded-core.git/commit
sstate: only search on the mirrors for the missing files
authorJose Quaresma <quaresma.jose@gmail.com>
Tue, 9 Nov 2021 11:11:47 +0000 (11:11 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 16 Nov 2021 22:19:47 +0000 (22:19 +0000)
commit46e1f9a900e2be1abeda0dc540fc14040ecd0d7c
treeed8fe92a7d3d1c9845ce447a0dc1bcd2a9cb0045
parent18e7a77aa1626e11820804ad64b86a32f97da2ca
sstate: only search on the mirrors for the missing files

The existence of missed files on the local sstate cache is the
condition to search for it on the sstate mirror.
The missed collection are populated when we search the files
on the local sstate cache.

- When we have sstate mirrors we don't need to iterate all files
again because we already know what's missing.

- When we found a file on the sstate mirror is because of they
are missing on the local sstate mirror.
So avoid checking if the hash exists on the missed collection.

- When we can't find the file on the sstate mirror we don't need
to add the hash again to the missed collection as it already exists.

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass