[oe-commits] Mark Hatle : lib/oe/package_manager.py: Fix _pkg_translate_smart_to_oe function
git at git.openembedded.org
git at git.openembedded.org
Thu Jul 3 16:47:09 UTC 2014
Module: openembedded-core.git
Branch: master
Commit: acd8bfc9378df0a2e1d6ea3858675b9fe350946d
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=acd8bfc9378df0a2e1d6ea3858675b9fe350946d
Author: Mark Hatle <mark.hatle at windriver.com>
Date: Wed Jul 2 19:57:41 2014 -0500
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 at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/lib/oe/package_manager.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 18eb792..5444422 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:
More information about the Openembedded-commits
mailing list