summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-03-24 17:48:49 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-03-25 17:25:56 +0000
commit6028daedcb2e3eeab8bb7c725de4303b03625ed8 (patch)
tree0b0f74bb6767b6853bef46424882b3b7fc2aafc9 /bitbake/lib/bb/fetch
parentc6940a97958be1d9981a3b5fb3ae27f74414e57f (diff)
downloadpoky-6028daedcb2e3eeab8bb7c725de4303b03625ed8.tar.gz
Fix 7 references to undefined variables, as spotted by pyflakes
(Bitbake rev: e1e4ccf203e38070eeafd31a622671996cff61a1) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/fetch')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index 5616c79ab0..e6cc1c535b 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -128,7 +128,7 @@ def encodeurl(decoded):
128 (type, host, path, user, pswd, p) = decoded 128 (type, host, path, user, pswd, p) = decoded
129 129
130 if not type or not path: 130 if not type or not path:
131 fatal("invalid or missing parameters for url encoding") 131 bb.msg.fatal(bb.msg.domain.Fetcher, "invalid or missing parameters for url encoding")
132 url = '%s://' % type 132 url = '%s://' % type
133 if user: 133 if user:
134 url += "%s" % user 134 url += "%s" % user
@@ -477,7 +477,7 @@ def try_mirrors(d, uri, mirrors, check = False):
477 try: 477 try:
478 ud = FetchData(newuri, ld) 478 ud = FetchData(newuri, ld)
479 except bb.fetch.NoMethodError: 479 except bb.fetch.NoMethodError:
480 bb.msg.debug(1, bb.msg.domain.Fetcher, "No method for %s" % url) 480 bb.msg.debug(1, bb.msg.domain.Fetcher, "No method for %s" % uri)
481 continue 481 continue
482 482
483 ud.setup_localpath(ld) 483 ud.setup_localpath(ld)