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:41:17 +0100 |
commit | 2c59db63189352914a1bf2d02263f33cc9f81b4b (patch) | |
tree | 86d4c3414ce0e1149c4c01c4479a13bf544a4f91 /meta/lib/oe | |
parent | 70c933e3abbaadf3142e039ccf8f675b4a458417 (diff) | |
download | poky-2c59db63189352914a1bf2d02263f33cc9f81b4b.tar.gz |
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
(From OE-Core rev: acd8bfc9378df0a2e1d6ea3858675b9fe350946d)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-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): | |||
248 | ''' | 248 | ''' |
249 | def _pkg_translate_smart_to_oe(self, pkg, arch): | 249 | def _pkg_translate_smart_to_oe(self, pkg, arch): |
250 | new_pkg = pkg | 250 | new_pkg = pkg |
251 | new_arch = arch | ||
251 | fixed_arch = arch.replace('_', '-') | 252 | fixed_arch = arch.replace('_', '-') |
252 | found = 0 | 253 | found = 0 |
253 | for mlib in self.ml_prefix_list: | 254 | for mlib in self.ml_prefix_list: |