[bitbake-devel] [PATCH] fetch2: Unable to fetch URL should be a warning, not an error

Konrad Scherer konrad.scherer at windriver.com
Wed Dec 4 15:39:41 UTC 2013


From: Konrad Scherer <Konrad.Scherer at windriver.com>

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.

Signed-off-by: Konrad Scherer <Konrad.Scherer at windriver.com>
---
 lib/bb/fetch2/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index 199cdca..ddbd7f1 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -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)
-- 
1.8.3.2




More information about the bitbake-devel mailing list