From 6028daedcb2e3eeab8bb7c725de4303b03625ed8 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Wed, 24 Mar 2010 17:48:49 -0700 Subject: Fix 7 references to undefined variables, as spotted by pyflakes (Bitbake rev: e1e4ccf203e38070eeafd31a622671996cff61a1) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/fetch') 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): (type, host, path, user, pswd, p) = decoded if not type or not path: - fatal("invalid or missing parameters for url encoding") + bb.msg.fatal(bb.msg.domain.Fetcher, "invalid or missing parameters for url encoding") url = '%s://' % type if user: url += "%s" % user @@ -477,7 +477,7 @@ def try_mirrors(d, uri, mirrors, check = False): try: ud = FetchData(newuri, ld) except bb.fetch.NoMethodError: - bb.msg.debug(1, bb.msg.domain.Fetcher, "No method for %s" % url) + bb.msg.debug(1, bb.msg.domain.Fetcher, "No method for %s" % uri) continue ud.setup_localpath(ld) -- cgit v1.2.3-54-g00ecf