diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-11 22:08:21 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-11 22:08:21 +0000 |
| commit | 029f19bd3d4dc09fb48bf6e5322d48bb84c4eb34 (patch) | |
| tree | c4738712f08cb91326bea57aff156c31c289e21e /bitbake/lib/bb/fetch2/repo.py | |
| parent | 4a226460d5e158e8adbf74a68717cb9a923e8009 (diff) | |
| download | poky-029f19bd3d4dc09fb48bf6e5322d48bb84c4eb34.tar.gz | |
bitbake/fetch2: Add explict network access exception and handling to give users usable error messages
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/repo.py')
| -rw-r--r-- | bitbake/lib/bb/fetch2/repo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/repo.py b/bitbake/lib/bb/fetch2/repo.py index 3b16fc0144..54130a8c3b 100644 --- a/bitbake/lib/bb/fetch2/repo.py +++ b/bitbake/lib/bb/fetch2/repo.py | |||
| @@ -72,10 +72,10 @@ class Repo(FetchMethod): | |||
| 72 | bb.mkdirhier(os.path.join(codir, "repo")) | 72 | bb.mkdirhier(os.path.join(codir, "repo")) |
| 73 | os.chdir(os.path.join(codir, "repo")) | 73 | os.chdir(os.path.join(codir, "repo")) |
| 74 | if not os.path.exists(os.path.join(codir, "repo", ".repo")): | 74 | if not os.path.exists(os.path.join(codir, "repo", ".repo")): |
| 75 | bb.fetch2.check_network_access(d, "repo init -m %s -b %s -u %s://%s%s%s" % (ud.manifest, ud.branch, ud.proto, username, ud.host, ud.path)) | 75 | bb.fetch2.check_network_access(d, "repo init -m %s -b %s -u %s://%s%s%s" % (ud.manifest, ud.branch, ud.proto, username, ud.host, ud.path), ud.url) |
| 76 | runfetchcmd("repo init -m %s -b %s -u %s://%s%s%s" % (ud.manifest, ud.branch, ud.proto, username, ud.host, ud.path), d) | 76 | runfetchcmd("repo init -m %s -b %s -u %s://%s%s%s" % (ud.manifest, ud.branch, ud.proto, username, ud.host, ud.path), d) |
| 77 | 77 | ||
| 78 | bb.fetch2.check_network_access(d, "repo sync %s" % ud.url) | 78 | bb.fetch2.check_network_access(d, "repo sync %s" % ud.url, ud.url) |
| 79 | runfetchcmd("repo sync", d) | 79 | runfetchcmd("repo sync", d) |
| 80 | os.chdir(codir) | 80 | os.chdir(codir) |
| 81 | 81 | ||
