summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/fetch2/__init__.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-04 10:49:27 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-07 09:06:36 +0000
commitab0dd1397491478ee6149283e5ba8775dd8cdc3b (patch)
treeab1c86ca6312cc8cea074913ac108e305e21ea71 /bitbake/lib/bb/fetch2/__init__.py
parent74b71864fed79ce60e721945c8e239b3ebf49200 (diff)
downloadopenembedded-core-ab0dd1397491478ee6149283e5ba8775dd8cdc3b.tar.gz
openembedded-core-ab0dd1397491478ee6149283e5ba8775dd8cdc3b.tar.bz2
openembedded-core-ab0dd1397491478ee6149283e5ba8775dd8cdc3b.tar.xz
openembedded-core-ab0dd1397491478ee6149283e5ba8775dd8cdc3b.zip
bitbake/fetch2: Rename Fetch class to FetchMethod
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/__init__.py')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index bdec67776..b60ed0ce6 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/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"