From: Richard Purdie Date: Mon, 27 Nov 2006 17:29:04 +0000 (+0000) Subject: rootfs_deb: Set Architecture correctly in a copy of apt.conf in staging X-Git-Tag: 2011-1~12445 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=207db00743b82b4f6ad7c9db974129a8a5ef1daa;p=openembedded-core.git rootfs_deb: Set Architecture correctly in a copy of apt.conf in staging git-svn-id: https://svn.o-hand.com/repos/poky/trunk@965 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass index fee7db9ae0..19e8b44207 100644 --- a/meta/classes/rootfs_deb.bbclass +++ b/meta/classes/rootfs_deb.bbclass @@ -29,7 +29,9 @@ fakeroot rootfs_deb_do_rootfs () { priority=$(expr $priority + 5) done - export APT_CONFIG="${STAGING_DIR}/etc/apt/apt.conf" + cat "${STAGING_DIR}/etc/apt/apt.conf.sample" | sed -e 's#Architecture ".*";#Architecture "${TARGET_ARCH}";#' > "${STAGING_DIR}/etc/apt/apt-rootfs.conf" + + export APT_CONFIG="${STAGING_DIR}/etc/apt/apt-rootfs.conf" export D=${IMAGE_ROOTFS} export OFFLINE_ROOT=${IMAGE_ROOTFS} export IPKG_OFFLINE_ROOT=${IMAGE_ROOTFS}