summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-19 14:06:08 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-20 13:10:47 +0100
commit801fbe5a0c1316ac54a3e8ea61c42a74e28bb0ed (patch)
treeea93ffecb07f987e837e056a1479164dee905f65
parent5af68d42ba62a2a18d1b0cdacad8e32c2b119255 (diff)
downloadpoky-801fbe5a0c1316ac54a3e8ea61c42a74e28bb0ed.tar.gz
bitbake: fetch2: Enhance error message for BB_NO_NETWORK
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] (Bitbake rev: cac3060d0bf8c7deeacda18d06d92787911380d0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 1365335330..adbbf30fda 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -121,7 +121,7 @@ class ParameterError(BBFetchException):
121class NetworkAccess(BBFetchException): 121class NetworkAccess(BBFetchException):
122 """Exception raised when network access is disabled but it is required.""" 122 """Exception raised when network access is disabled but it is required."""
123 def __init__(self, url, cmd): 123 def __init__(self, url, cmd):
124 msg = "Network access disabled through BB_NO_NETWORK but access requested with command %s (for url %s)" % (cmd, url) 124 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)
125 self.url = url 125 self.url = url
126 self.cmd = cmd 126 self.cmd = cmd
127 BBFetchException.__init__(self, msg) 127 BBFetchException.__init__(self, msg)