rootfs_ipk: move "mkdir /etc/opkg" inside ONLINE_PACKAGE_MANAGEMENT conditional
authorPhil Blundell <philb@gnu.org>
Mon, 15 Jun 2009 16:52:18 +0000 (17:52 +0100)
committerPhil Blundell <philb@gnu.org>
Mon, 15 Jun 2009 16:52:18 +0000 (17:52 +0100)
classes/rootfs_ipk.bbclass

index 4e9affa..f554e06 100644 (file)
@@ -64,9 +64,8 @@ fakeroot rootfs_ipk_do_rootfs () {
        export IPKG_OFFLINE_ROOT=${IMAGE_ROOTFS}
        export OPKG_OFFLINE_ROOT=${IPKG_OFFLINE_ROOT}
        
-       mkdir -p ${IMAGE_ROOTFS}${sysconfdir}/opkg/
-
        if [ "${ONLINE_PACKAGE_MANAGEMENT}" != "none" ]; then
+               mkdir -p ${IMAGE_ROOTFS}${sysconfdir}/opkg/
                grep "^arch" ${IPKGCONF_TARGET} >${IMAGE_ROOTFS}${sysconfdir}/opkg/arch.conf
        fi