From fa426b73b09d273a8eea3436dcf459c352a31212 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 4 Feb 2011 10:49:27 +0000 Subject: bitbake/fetch2: Rename Fetch class to FetchMethod (From Poky rev: ab0dd1397491478ee6149283e5ba8775dd8cdc3b) Signed-off-by: Richard Purdie --- lib/bb/fetch2/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/bb/fetch2/__init__.py') diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index bdec67776..b60ed0ce6 100644 --- a/lib/bb/fetch2/__init__.py +++ b/lib/bb/fetch2/__init__.py @@ -587,7 +587,7 @@ class FetchData(object): self.localpath = None self.lockfile = None (self.type, self.host, self.path, self.user, self.pswd, self.parm) = decodeurl(data.expand(url, d)) - self.date = Fetch.getSRCDate(self, d) + self.date = FetchMethod.getSRCDate(self, d) self.url = url if not self.user and "user" in self.parm: self.user = self.parm["user"] @@ -618,7 +618,7 @@ class FetchData(object): if self.method.supports_srcrev(): self.revisions = {} for name in self.names: - self.revisions[name] = Fetch.srcrev_internal_helper(self, d, name) + self.revisions[name] = FetchMethod.srcrev_internal_helper(self, d, name) # add compatibility code for non name specified case if len(self.names) == 1: @@ -645,7 +645,7 @@ class FetchData(object): self.localpath = self.method.localpath(self.url, self, d) -class Fetch(object): +class FetchMethod(object): """Base class for 'fetch'ing data""" def __init__(self, urls = []): @@ -893,7 +893,7 @@ class Fetch(object): uselocalcount = bb.data.getVar("BB_LOCALCOUNT_OVERRIDE", d, True) or False count = None if uselocalcount: - count = Fetch.localcount_internal_helper(ud, d, name) + count = FetchMethod.localcount_internal_helper(ud, d, name) if count is None: count = localcounts[key + '_count'] or "0" -- cgit 1.2.3-korg