]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/package_manager.py: Fix _pkg_translate_smart_to_oe function
authorMark Hatle <mark.hatle@windriver.com>
Thu, 3 Jul 2014 00:57:41 +0000 (19:57 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Jul 2014 16:38:46 +0000 (17:38 +0100)
commitacd8bfc9378df0a2e1d6ea3858675b9fe350946d
tree1c251ce53d00eef40c9982cde766f05c01caf889
parent62eede9de6fa1c76fa97ca5c6ba2d31309759b10
lib/oe/package_manager.py: Fix _pkg_translate_smart_to_oe function

File: '/home/mhatle/git/oss/oe-core/meta/lib/oe/package_manager.py', lineno: 278, function: _pkg_translate_smart_to_oe
     0274:
     0275:            if found == 1 and fixed_arch == fixed_cmp_arch:
     0276:                break
     0277:        #bb.note('%s, %s -> %s, %s' % (pkg, arch, new_pkg, new_arch))
 *** 0278:        return new_pkg, new_arch
     0279:
     0280:    def _list_pkg_deps(self):
     0281:        cmd = [bb.utils.which(os.getenv('PATH'), "rpmresolve"),
     0282:               "-t", self.image_rpmlib]
Exception: UnboundLocalError: local variable 'new_arch' referenced before assignment

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager.py