From f971ae290cbbc51ec3669b57c55b2b7c0bd9bc87 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Fri, 22 Jan 2016 09:43:59 +0000 Subject: 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 Signed-off-by: Richard Purdie --- meta/lib/oe/package_manager.py | 1 + 1 file changed, 1 insertion(+) (limited to 'meta') 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: -- cgit v1.2.3