summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorStefan Eichenberger <Stefan.Eichenberger@netmodule.com>2013-02-08 15:30:13 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-12 13:22:42 +0000
commit40962b8a4866c4797cd5daa6223f23c6ac1fac0e (patch)
tree355b62e17c70216739e8e4c7f83e21e2a88590bc /meta
parentc160a982551f5d6186081daa8fa20682fd7fae17 (diff)
downloadpoky-40962b8a4866c4797cd5daa6223f23c6ac1fac0e.tar.gz
Write DPKG_ARCH to /etc/apt/apt.conf
Apt does not recognize the architecture if a different one is set with DPKG_ARCH (e.g. armel). This patch writes the correct architecture to /etc/apt/apt.conf. (From OE-Core rev: 81b8c36641994dc7a4e025f2d43f9ce57d04b6f0) Signed-off-by: Stefan Eichenberger <stefan.eichenberger@netmodule.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/apt/apt_0.7.14.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/apt/apt_0.7.14.bb b/meta/recipes-devtools/apt/apt_0.7.14.bb
index 667b700064..7f1572bcd8 100644
--- a/meta/recipes-devtools/apt/apt_0.7.14.bb
+++ b/meta/recipes-devtools/apt/apt_0.7.14.bb
@@ -16,3 +16,8 @@ require apt-package.inc
16FILES_${PN} += "${bindir}/apt-key" 16FILES_${PN} += "${bindir}/apt-key"
17apt-manpages += "doc/apt-key.8" 17apt-manpages += "doc/apt-key.8"
18 18
19do_install_append() {
20 #Write the correct apt-architecture to apt.conf
21 APT_CONF=${D}/etc/apt/apt.conf
22 echo 'APT::Architecture "${DPKG_ARCH}";' > ${APT_CONF}
23}