summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorYu Ke <ke.yu@intel.com>2011-01-10 18:05:07 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-10 18:05:07 +0000
commitc64b445f38179a117d39319f762f9dc2435da0ea (patch)
tree11d59fd3179d6c62eb80e81afaf343900d94f082 /bitbake/lib/bb/fetch2/git.py
parent6b212ad3c3a848be713d62b942da3a294a26f043 (diff)
downloadpoky-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.py8
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
23import os 23import os
24import bb 24import bb
25from bb import data 25from bb import data
26from bb.fetch import Fetch 26from bb.fetch2 import Fetch
27from bb.fetch import runfetchcmd 27from bb.fetch2 import runfetchcmd
28from bb.fetch import logger 28from bb.fetch2 import logger
29 29
30class Git(Fetch): 30class 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):