diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2014-07-02 19:57:41 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-03 17:38:46 +0100 |
commit | acd8bfc9378df0a2e1d6ea3858675b9fe350946d (patch) | |
tree | 1c251ce53d00eef40c9982cde766f05c01caf889 /meta | |
parent | 62eede9de6fa1c76fa97ca5c6ba2d31309759b10 (diff) | |
download | openembedded-core-acd8bfc9378df0a2e1d6ea3858675b9fe350946d.tar.gz openembedded-core-acd8bfc9378df0a2e1d6ea3858675b9fe350946d.tar.bz2 openembedded-core-acd8bfc9378df0a2e1d6ea3858675b9fe350946d.zip |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/package_manager.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 18eb7929a9..5444422305 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py @@ -248,6 +248,7 @@ class RpmPkgsList(PkgsList): ''' def _pkg_translate_smart_to_oe(self, pkg, arch): new_pkg = pkg + new_arch = arch fixed_arch = arch.replace('_', '-') found = 0 for mlib in self.ml_prefix_list: |