Skip to contentSkip to conversation

fetch2: Unable to fetch URL should be a warning, not an error

PATCH In review Konrad Scherer 2 participants 2 messages Dec 4, 2013

lore
Share & tools
lore
#0 lore raw

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
index 199cdca..ddbd7f1 100644
@@ -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
#1 lore raw

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.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.

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