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>
This commit is contained in:
Joshua Lock
2016-01-22 09:43:59 +00:00
committed by Richard Purdie
parent c1f4e929c9
commit 0aeb33f6e0

View File

@@ -308,6 +308,7 @@ class PkgsList(object):
output = dict()
filename = ""
dep = []
pkg = ""
for line in cmd_output.splitlines():
line = line.rstrip()
if ':' in line: