From c64b445f38179a117d39319f762f9dc2435da0ea Mon Sep 17 00:00:00 2001 From: Yu Ke Date: Mon, 10 Jan 2011 18:05:07 +0000 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/git.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bitbake/lib/bb/fetch2/git.py') 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 import os import bb from bb import data -from bb.fetch import Fetch -from bb.fetch import runfetchcmd -from bb.fetch import logger +from bb.fetch2 import Fetch +from bb.fetch2 import runfetchcmd +from bb.fetch2 import logger class Git(Fetch): """Class to fetch a module or modules from git repositories""" @@ -225,7 +225,7 @@ class Git(Fetch): cmd = "%s ls-remote %s://%s%s%s %s" % (basecmd, ud.proto, username, ud.host, ud.path, ud.branch) output = runfetchcmd(cmd, d, True) if not output: - raise bb.fetch.FetchError("Fetch command %s gave empty output\n" % (cmd)) + raise bb.fetch2.FetchError("Fetch command %s gave empty output\n" % (cmd)) return output.split()[0] def _build_revision(self, url, ud, d): -- cgit v1.2.3-54-g00ecf