[OE-core] [v2 PATCH 1/7] lib/oe/package_manager.py: Fix _pkg_translate_smart_to_oe function
Mark Hatle
mark.hatle at windriver.com
Thu Jul 3 00:57:41 UTC 2014
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>
---
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:
--
1.9.3
More information about the Openembedded-core
mailing list