]> code.ossystems Code Review - openembedded-core.git/commit
sstate.bbclass: When siginfo or sig files are missing, stop fetcher errors
authorMark Hatle <mark.hatle@xilinx.com>
Wed, 13 May 2020 16:12:48 +0000 (11:12 -0500)
committerSteve Sakoman <steve@sakoman.com>
Mon, 1 Jun 2020 17:02:44 +0000 (07:02 -1000)
commitec58532ab6fc6343144da67789c928c751d36c06
tree4d60fffa1ce9474119be0393667abdcf8125d1b9
parent8a7da39c04fbab1280c464f39a791e4fbd1e7da9
sstate.bbclass: When siginfo or sig files are missing, stop fetcher errors

Prior to fetching, the system checks if the sstate file is present
either locally or on the mirror.  If it is, then it goes to the fetch
stage.  Up to three files can be fetched, sstate, sstate.siginfo and
sstate.sig (if signature validation is enabled).

The previous pstaging_fetch function would iterate over these, and if
a download error occurred would spew forth a great amount of fetcher
failure messages as well as stop fetching the next item in the set.

This was resolved by adding a fetcher.checkstatus() call prior to
the download.  If the file isn't present, then the exception will
be triggered, and no fetcher failure messages will reach the user.

The exception handler is then modified to be a pass so that it will
loop and pull the rest of the files that that are requested.

Additionally, a check for the existance of the .sig file was added
to the sstate_installpkg to avoid an error trying to load the .sig
if it wasn't downloaded.

Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a9085140434e2d26c0bb75bb53fcb7f7c19ef86d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/sstate.bbclass