summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/repo.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-11 22:08:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-21 13:35:02 +0000
commit5d9eaa644d7a1832daef5a14cd708226be1c1bf6 (patch)
tree3f247a9caa25b9d6f71db2751eeaee17543422a8 /lib/bb/fetch2/repo.py
parentc4f6794c5842f15b2d2e43be79c548ed29704b2a (diff)
downloadbitbake-5d9eaa644d7a1832daef5a14cd708226be1c1bf6.tar.gz
bitbake/fetch2: Add explict network access exception and handling to give users usable error messages
(From Poky rev: 029f19bd3d4dc09fb48bf6e5322d48bb84c4eb34) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/repo.py')
-rw-r--r--lib/bb/fetch2/repo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/fetch2/repo.py b/lib/bb/fetch2/repo.py
index 3b16fc014..54130a8c3 100644
--- a/lib/bb/fetch2/repo.py
+++ b/lib/bb/fetch2/repo.py
@@ -72,10 +72,10 @@ class Repo(FetchMethod):
bb.mkdirhier(os.path.join(codir, "repo"))
os.chdir(os.path.join(codir, "repo"))
if not os.path.exists(os.path.join(codir, "repo", ".repo")):
- 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))
+ 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)
runfetchcmd("repo init -m %s -b %s -u %s://%s%s%s" % (ud.manifest, ud.branch, ud.proto, username, ud.host, ud.path), d)
- bb.fetch2.check_network_access(d, "repo sync %s" % ud.url)
+ bb.fetch2.check_network_access(d, "repo sync %s" % ud.url, ud.url)
runfetchcmd("repo sync", d)
os.chdir(codir)