summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJoshua Lock <joshua.g.lock@intel.com>2016-01-22 09:43:59 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-24 09:40:33 +0000
commit0aeb33f6e01f86321514afb85f0ccbaab3eac860 (patch)
tree5fb0c162eebe3436687a06b7f524432733ffc42b /meta
parentc1f4e929c943fdbdb468a517db98d5b3653663d3 (diff)
downloadpoky-0aeb33f6e01f86321514afb85f0ccbaab3eac860.tar.gz
lib/oe/package_manager: prevent testing an undefined variable
This prevents an error in do_populate_sdk when building buildtools-tarball with ipk as the package manager: Exception: UnboundLocalError: local variable 'pkg' referenced before assignment (From OE-Core rev: f971ae290cbbc51ec3669b57c55b2b7c0bd9bc87) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oe/package_manager.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 6a6e3e9b7d..5b87f45127 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -308,6 +308,7 @@ class PkgsList(object):
308 output = dict() 308 output = dict()
309 filename = "" 309 filename = ""
310 dep = [] 310 dep = []
311 pkg = ""
311 for line in cmd_output.splitlines(): 312 for line in cmd_output.splitlines():
312 line = line.rstrip() 313 line = line.rstrip()
313 if ':' in line: 314 if ':' in line: