fetch2: Unable to fetch URL should be a warning, not an error
PATCH 1/1 fetch2: Unable to fetch URL should be a warning, not an error
From: Konrad Scherer <[email protected]>
Running a build server with local sstate cache and running the oe-core sstate-cache-management.sh script on cron can cause errors if an sstate file is removed before it can be used. This is not an error because the package can be rebuilt from source. Changing the message to a warning is more appropriate in this case.
--- lib/bb/fetch2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/fetch2/__init__.py +1 -1
@@ -1418,7 +1418,7 @@ class Fetch(object): if not localpath or ((not os.path.exists(localpath)) and localpath.find("*") == -1): if firsterr: - logger.error(str(firsterr)) + logger.warn(str(firsterr)) raise FetchError("Unable to fetch URL from any source.", u) update_stamp(ud, self.d)
Signature · 1 line
1.8.3.2
On Wed, Dec 4, 2013 at 8:39 AM, Konrad Scherer <[email protected]
Quoted 4 lines
wrote:
From: Konrad Scherer <[email protected]>
Quoted 8 lines
Running a build server with local sstate cache and running the oe-core
sstate-cache-management.shscript on cron can cause errors if an sstate file is removed before it can be used. This is not an error because the package can be rebuilt from source. Changing the message to a warning is more appropriate in this case.Signed-off-by Konrad Scherer <[email protected]>
FYI, there’s an open bug to resolve similar issues by getting rid of the message entirely, not just changing it to a warning:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=4499
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics