diff options
author | Yu Ke <ke.yu@intel.com> | 2011-01-10 18:05:07 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-10 18:05:07 +0000 |
commit | c64b445f38179a117d39319f762f9dc2435da0ea (patch) | |
tree | 11d59fd3179d6c62eb80e81afaf343900d94f082 /bitbake/lib/bb/fetch2/git.py | |
parent | 6b212ad3c3a848be713d62b942da3a294a26f043 (diff) | |
download | poky-c64b445f38179a117d39319f762f9dc2435da0ea.tar.gz |
bb.fetch2: replace bb.fetch with bb.fetch2 in the bb.fetch
bb.fetch2 is copied from bb.fetch, and has many bb.fetch referrence.
Fix these referrence with bb.fetch2 referrence
Signed-off-by: Yu Ke <ke.yu@intel.com>
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 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index de415ec309..e8ad3b43ca 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -23,9 +23,9 @@ BitBake 'Fetch' git implementation | |||
23 | import os | 23 | import os |
24 | import bb | 24 | import bb |
25 | from bb import data | 25 | from bb import data |
26 | from bb.fetch import Fetch | 26 | from bb.fetch2 import Fetch |
27 | from bb.fetch import runfetchcmd | 27 | from bb.fetch2 import runfetchcmd |
28 | from bb.fetch import logger | 28 | from bb.fetch2 import logger |
29 | 29 | ||
30 | class Git(Fetch): | 30 | class Git(Fetch): |
31 | """Class to fetch a module or modules from git repositories""" | 31 | """Class to fetch a module or modules from git repositories""" |
@@ -225,7 +225,7 @@ class Git(Fetch): | |||
225 | cmd = "%s ls-remote %s://%s%s%s %s" % (basecmd, ud.proto, username, ud.host, ud.path, ud.branch) | 225 | cmd = "%s ls-remote %s://%s%s%s %s" % (basecmd, ud.proto, username, ud.host, ud.path, ud.branch) |
226 | output = runfetchcmd(cmd, d, True) | 226 | output = runfetchcmd(cmd, d, True) |
227 | if not output: | 227 | if not output: |
228 | raise bb.fetch.FetchError("Fetch command %s gave empty output\n" % (cmd)) | 228 | raise bb.fetch2.FetchError("Fetch command %s gave empty output\n" % (cmd)) |
229 | return output.split()[0] | 229 | return output.split()[0] |
230 | 230 | ||
231 | def _build_revision(self, url, ud, d): | 231 | def _build_revision(self, url, ud, d): |