]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs_rpm.bbclass: use more efficient way to copy packages
authorMarcin Juszkiewicz <hrw@openedhand.com>
Thu, 2 Oct 2008 19:02:39 +0000 (19:02 +0000)
committerMarcin Juszkiewicz <hrw@openedhand.com>
Thu, 2 Oct 2008 19:02:39 +0000 (19:02 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5386 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/rootfs_rpm.bbclass

index 2d5f51af0427dced4e12dd54a8b37aaf8d230e03..16a96046d2f4d19fc7a3a7be14e0eec2bc865b78 100644 (file)
@@ -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