summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_rpm.bbclass
diff options
context:
space:
mode:
authorMing Liu <ming.liu@windriver.com>2012-11-26 10:24:03 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-03 13:48:23 +0000
commit554f2436435bf96c6735827f491c1b78b198c016 (patch)
treea69137a7aebd1dfa4fcf7bc7b52aa1fc37802b74 /meta/classes/rootfs_rpm.bbclass
parentcd035f170a2448b9ebcf0cfac5d4c0fa472b7049 (diff)
downloadopenembedded-core-554f2436435bf96c6735827f491c1b78b198c016.tar.gz
openembedded-core-554f2436435bf96c6735827f491c1b78b198c016.tar.bz2
openembedded-core-554f2436435bf96c6735827f491c1b78b198c016.zip
rootfs_rpm.bbclass: normalize arch output of list_installed_packages
list_installed_packages should output uniform formatted archs for all packaging system(deb, rpm and ipk), for they are used by common code to grab the package infos. Otherwise, it will lead some -dbg packages to be missed processing in come cases. It's introduced by commit: fc985f51, package_rpm.bbclass: fix the arch (replace "-" with "_"). Fixed by replacing "_" back to "-" in list_installed_packages, make it output real arch values which can be safely used. Signed-off-by: Ming Liu <ming.liu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r--meta/classes/rootfs_rpm.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index c86cd094ff..300dd5f75d 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -153,7 +153,7 @@ list_installed_packages() {
# print the info, need to different return counts
if [ "$1" = "arch" ] ; then
- echo "$GET_LIST" | awk '{print $1, $2}'
+ echo "$GET_LIST" | awk '{gsub("_", "-", $2); print $1, $2}'
elif [ "$1" = "file" ] ; then
echo "$GET_LIST" | awk '{print $1, $3}'
else