diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/packageinfo.bbclass | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/meta/classes/packageinfo.bbclass b/meta/classes/packageinfo.bbclass index 46b9097a54..26cce604ae 100644 --- a/meta/classes/packageinfo.bbclass +++ b/meta/classes/packageinfo.bbclass | |||
@@ -20,14 +20,25 @@ python packageinfo_handler () { | |||
20 | pkgrename = sdata['PKG_%s' % pkgname] | 20 | pkgrename = sdata['PKG_%s' % pkgname] |
21 | pkgv = sdata['PKGV'].replace('-', '+') | 21 | pkgv = sdata['PKGV'].replace('-', '+') |
22 | pkgr = sdata['PKGR'] | 22 | pkgr = sdata['PKGR'] |
23 | # We found there are some renaming issue with certain architecture. | ||
24 | # For example, armv7a-vfp-neon, it will use armv7a in the rpm file. This is the workaround for it. | ||
25 | arch_tmp = arch.split('-')[0] | ||
23 | if os.path.exists(deploy_dir + '/' + arch + '/' + \ | 26 | if os.path.exists(deploy_dir + '/' + arch + '/' + \ |
24 | pkgname + '-' + pkgv + '-' + pkgr + '.' + arch + '.' + packaging) or \ | 27 | pkgname + '-' + pkgv + '-' + pkgr + '.' + arch + '.' + packaging) or \ |
25 | os.path.exists(deploy_dir + '/' + arch + '/' + \ | 28 | os.path.exists(deploy_dir + '/' + arch + '/' + \ |
29 | pkgname + '-' + pkgv + '-' + pkgr + '.' + arch_tmp + '.' + packaging) or \ | ||
30 | os.path.exists(deploy_dir + '/' + arch + '/' + \ | ||
26 | pkgrename + '-' + pkgv + '-' + pkgr + '.' + arch + '.' + packaging) or \ | 31 | pkgrename + '-' + pkgv + '-' + pkgr + '.' + arch + '.' + packaging) or \ |
27 | os.path.exists(deploy_dir + '/' + arch + '/' + \ | 32 | os.path.exists(deploy_dir + '/' + arch + '/' + \ |
33 | pkgrename + '-' + pkgv + '-' + pkgr + '.' + arch_tmp + '.' + packaging) or \ | ||
34 | os.path.exists(deploy_dir + '/' + arch + '/' + \ | ||
28 | pkgname + '_' + pkgv + '-' + pkgr + '_' + arch + '.' + packaging) or \ | 35 | pkgname + '_' + pkgv + '-' + pkgr + '_' + arch + '.' + packaging) or \ |
29 | os.path.exists(deploy_dir + '/' + arch + '/' + \ | 36 | os.path.exists(deploy_dir + '/' + arch + '/' + \ |
30 | pkgrename + '_' + pkgv + '-' + pkgr + '_' + arch + '.' + packaging): | 37 | pkgname + '_' + pkgv + '-' + pkgr + '_' + arch_tmp + '.' + packaging) or \ |
38 | os.path.exists(deploy_dir + '/' + arch + '/' + \ | ||
39 | pkgrename + '_' + pkgv + '-' + pkgr + '_' + arch + '.' + packaging) or \ | ||
40 | os.path.exists(deploy_dir + '/' + arch + '/' + \ | ||
41 | pkgrename + '_' + pkgv + '-' + pkgr + '_' + arch_tmp + '.' + packaging): | ||
31 | pkginfolist.append(sdata) | 42 | pkginfolist.append(sdata) |
32 | bb.event.fire(bb.event.PackageInfo(pkginfolist), e.data) | 43 | bb.event.fire(bb.event.PackageInfo(pkginfolist), e.data) |
33 | } | 44 | } |