]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
fetch2: Enhance error message for BB_NO_NETWORK
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Jun 2013 13:06:08 +0000 (14:06 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Jun 2013 13:14:08 +0000 (14:14 +0100)
BB_NO_NETWORK can be set by bitbake internally by the use of
BB_FETCH_PREMIRRORONLY so update the error message to give users a
hint about this.

[YOCTO #3222]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/fetch2/__init__.py

index 1365335330d95fb8b31e90125da2315d6a79cc70..adbbf30fdada3edf3b7f405d771f594cfca8363d 100644 (file)
@@ -121,7 +121,7 @@ class ParameterError(BBFetchException):
 class NetworkAccess(BBFetchException):
     """Exception raised when network access is disabled but it is required."""
     def __init__(self, url, cmd):
-         msg = "Network access disabled through BB_NO_NETWORK but access requested with command %s (for url %s)" % (cmd, url)
+         msg = "Network access disabled through BB_NO_NETWORK (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access requested with command %s (for url %s)" % (cmd, url)
          self.url = url
          self.cmd = cmd
          BBFetchException.__init__(self, msg)