mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
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:
committed by
Richard Purdie
parent
c1f4e929c9
commit
0aeb33f6e0
@@ -308,6 +308,7 @@ class PkgsList(object):
|
||||
output = dict()
|
||||
filename = ""
|
||||
dep = []
|
||||
pkg = ""
|
||||
for line in cmd_output.splitlines():
|
||||
line = line.rstrip()
|
||||
if ':' in line:
|
||||
|
||||
Reference in New Issue
Block a user