summaryrefslogtreecommitdiff
path: root/meta/lib/oe
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-22 23:42:57 +0000
commitf971ae290cbbc51ec3669b57c55b2b7c0bd9bc87 (patch)
tree5664518348eb63c0754029fb33bbe57af05dd4f1 /meta/lib/oe
parent578d3873a6415c9203c185c21cff472f7d2dab02 (diff)
downloadopenembedded-core-f971ae290cbbc51ec3669b57c55b2b7c0bd9bc87.tar.gz
openembedded-core-f971ae290cbbc51ec3669b57c55b2b7c0bd9bc87.tar.bz2
openembedded-core-f971ae290cbbc51ec3669b57c55b2b7c0bd9bc87.zip
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 Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-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):
output = dict()
filename = ""
dep = []
+ pkg = ""
for line in cmd_output.splitlines():
line = line.rstrip()
if ':' in line: