diff options
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r-- | meta/classes/rootfs_rpm.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass index 9c681f382b..9cbfdd3db3 100644 --- a/meta/classes/rootfs_rpm.bbclass +++ b/meta/classes/rootfs_rpm.bbclass | |||
@@ -20,6 +20,8 @@ AWKPOSTINSTSCRIPT = "${POKYBASE}/scripts/rootfs_rpm-extract-postinst.awk" | |||
20 | RPM_PREPROCESS_COMMANDS = "package_update_index_rpm; package_generate_rpm_conf" | 20 | RPM_PREPROCESS_COMMANDS = "package_update_index_rpm; package_generate_rpm_conf" |
21 | RPM_POSTPROCESS_COMMANDS = "" | 21 | RPM_POSTPROCESS_COMMANDS = "" |
22 | 22 | ||
23 | opkglibdir = "${localstatedir}/lib/opkg" | ||
24 | |||
23 | fakeroot rootfs_rpm_do_rootfs () { | 25 | fakeroot rootfs_rpm_do_rootfs () { |
24 | set +x | 26 | set +x |
25 | 27 | ||
@@ -164,7 +166,7 @@ rootfs_rpm_log_check() { | |||
164 | 166 | ||
165 | remove_packaging_data_files() { | 167 | remove_packaging_data_files() { |
166 | exit 1 | 168 | exit 1 |
167 | rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg/ | 169 | rm -rf ${IMAGE_ROOTFS}${opkglibdir} |
168 | } | 170 | } |
169 | 171 | ||
170 | install_all_locales() { | 172 | install_all_locales() { |
@@ -172,7 +174,7 @@ install_all_locales() { | |||
172 | 174 | ||
173 | PACKAGES_TO_INSTALL="" | 175 | PACKAGES_TO_INSTALL="" |
174 | 176 | ||
175 | INSTALLED_PACKAGES=`grep ^Package: ${IMAGE_ROOTFS}${libdir}/opkg/status |sed "s/^Package: //"|egrep -v -- "(-locale-|-dev$|-doc$|^kernel|^glibc|^ttf|^task|^perl|^python)"` | 177 | INSTALLED_PACKAGES=`grep ^Package: ${IMAGE_ROOTFS}${opkglibdir}/status |sed "s/^Package: //"|egrep -v -- "(-locale-|-dev$|-doc$|^kernel|^glibc|^ttf|^task|^perl|^python)"` |
176 | 178 | ||
177 | for pkg in $INSTALLED_PACKAGES | 179 | for pkg in $INSTALLED_PACKAGES |
178 | do | 180 | do |