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/hg.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/hg.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/hg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py index ac5825baa9..6a56f8d0cd 100644 --- a/bitbake/lib/bb/fetch2/hg.py +++ b/bitbake/lib/bb/fetch2/hg.py | |||
@@ -124,7 +124,7 @@ class Hg(FetchMethod): | |||
124 | # update sources there | 124 | # update sources there |
125 | os.chdir(ud.moddir) | 125 | os.chdir(ud.moddir) |
126 | logger.debug(1, "Running %s", updatecmd) | 126 | logger.debug(1, "Running %s", updatecmd) |
127 | bb.fetch2.check_network_access(d, updatecmd) | 127 | bb.fetch2.check_network_access(d, updatecmd, ud.url) |
128 | runfetchcmd(updatecmd, d) | 128 | runfetchcmd(updatecmd, d) |
129 | 129 | ||
130 | else: | 130 | else: |
@@ -134,7 +134,7 @@ class Hg(FetchMethod): | |||
134 | bb.mkdirhier(ud.pkgdir) | 134 | bb.mkdirhier(ud.pkgdir) |
135 | os.chdir(ud.pkgdir) | 135 | os.chdir(ud.pkgdir) |
136 | logger.debug(1, "Running %s", fetchcmd) | 136 | logger.debug(1, "Running %s", fetchcmd) |
137 | bb.fetch2.check_network_access(d, fetchcmd) | 137 | bb.fetch2.check_network_access(d, fetchcmd, ud.url) |
138 | runfetchcmd(fetchcmd, d) | 138 | runfetchcmd(fetchcmd, d) |
139 | 139 | ||
140 | # Even when we clone (fetch), we still need to update as hg's clone | 140 | # Even when we clone (fetch), we still need to update as hg's clone |