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/git.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/git.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 6d82bdc88b..f2c27e42a7 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -132,7 +132,7 @@ class Git(FetchMethod): | |||
132 | if not self._contains_ref(ud.revisions[name], d): | 132 | if not self._contains_ref(ud.revisions[name], d): |
133 | needupdate = True | 133 | needupdate = True |
134 | if needupdate: | 134 | if needupdate: |
135 | bb.fetch2.check_network_access(d, "git fetch %s%s" % (ud.host, ud.path)) | 135 | bb.fetch2.check_network_access(d, "git fetch %s%s" % (ud.host, ud.path), ud.url) |
136 | try: | 136 | try: |
137 | runfetchcmd("%s remote prune origin" % ud.basecmd, d) | 137 | runfetchcmd("%s remote prune origin" % ud.basecmd, d) |
138 | runfetchcmd("%s remote rm origin" % ud.basecmd, d) | 138 | runfetchcmd("%s remote rm origin" % ud.basecmd, d) |