summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-10-02 19:02:39 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-10-02 19:02:39 +0000
commit2d4b12e62b72594f874167189df560d5768e65b9 (patch)
tree9bc2ef55e91170625e0c529b1d0c9497024dfad3 /meta/classes
parentaabd91ec5958827dabe3c1ea4495090012f4c6ed (diff)
downloadopenembedded-core-2d4b12e62b72594f874167189df560d5768e65b9.tar.gz
openembedded-core-2d4b12e62b72594f874167189df560d5768e65b9.tar.bz2
openembedded-core-2d4b12e62b72594f874167189df560d5768e65b9.zip
rootfs_rpm.bbclass: use more efficient way to copy packages
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5386 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/rootfs_rpm.bbclass12
1 files changed, 7 insertions, 5 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 2d5f51af04..16a96046d2 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -37,6 +37,8 @@ basearch=arm
EOF
#priority=1
+ mkdir -p ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM}
+
for arch in ${PACKAGE_ARCHS}; do
if [ ! -d ${DEPLOY_DIR_RPM}/$arch ]; then
continue;
@@ -49,13 +51,13 @@ EOF
echo "gpgcheck=0" >> ${YUMCONF}
echo "" >> ${YUMCONF}
#priority=$(expr $priority + 5)
+
+ # Copy the packages into the target image
+ # Ugly ugly ugly but rpm is braindead and can't see outside the chroot
+ # when installing :(
+ cp -r ${DEPLOY_DIR_RPM}/$arch ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM}/
done
- # Copy the packages into the target image
- # Ugly ugly ugly but rpm is braindead and can't see outside the chroot
- # when installing :(
- mkdir -p ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM}
- cp -r ${DEPLOY_DIR_RPM}/* ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM}/
#mkdir -p ${IMAGE_ROOTFS}/var/lib/rpm
#rpm --root ${IMAGE_ROOTFS} --initdb