aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch/__init__.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-04-09 17:11:03 -0700
committerChris Larson <chris_larson@mentor.com>2010-04-09 19:37:13 -0700
commit03a6c26f8da226f442c3cab557e4733f7cd6eeac (patch)
tree557703379fa4283b7a0fd6c59249288ea15813a7 /lib/bb/fetch/__init__.py
parent6ccc01a1a72ec354de52fef2bf5620384b8461ce (diff)
downloadbitbake-03a6c26f8da226f442c3cab557e4733f7cd6eeac.tar.gz
Stop using functions via 'bb' that were moved from there to other modules
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/fetch/__init__.py')
-rw-r--r--lib/bb/fetch/__init__.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/bb/fetch/__init__.py b/lib/bb/fetch/__init__.py
index 9351a6d37..41a2b7f1b 100644
--- a/lib/bb/fetch/__init__.py
+++ b/lib/bb/fetch/__init__.py
@@ -118,9 +118,9 @@ def uri_replace(uri, uri_find, uri_replace, d):
# bb.msg.note(1, bb.msg.domain.Fetcher, "uri_replace: operating on %s" % uri)
if not uri or not uri_find or not uri_replace:
bb.msg.debug(1, bb.msg.domain.Fetcher, "uri_replace: passed an undefined value, not replacing")
- uri_decoded = list(bb.decodeurl(uri))
- uri_find_decoded = list(bb.decodeurl(uri_find))
- uri_replace_decoded = list(bb.decodeurl(uri_replace))
+ uri_decoded = list(decodeurl(uri))
+ uri_find_decoded = list(decodeurl(uri_find))
+ uri_replace_decoded = list(decodeurl(uri_replace))
result_decoded = ['','','','','',{}]
for i in uri_find_decoded:
loc = uri_find_decoded.index(i)
@@ -141,7 +141,7 @@ def uri_replace(uri, uri_find, uri_replace, d):
# else:
# for j in i:
# FIXME: apply replacements against options
- return bb.encodeurl(result_decoded)
+ return encodeurl(result_decoded)
methods = []
urldata_cache = {}
@@ -474,7 +474,7 @@ class FetchData(object):
"""
def __init__(self, url, d):
self.localfile = ""
- (self.type, self.host, self.path, self.user, self.pswd, self.parm) = bb.decodeurl(data.expand(url, d))
+ (self.type, self.host, self.path, self.user, self.pswd, self.parm) = decodeurl(data.expand(url, d))
self.date = Fetch.getSRCDate(self, d)
self.url = url
if not self.user and "user" in self.parm: