[elbe-devel] [PATCH] virtapt: restrict available archs to system arch

John Ogness john.ogness at linutronix.de
Wed Dec 6 22:12:31 CET 2017


Until now Architectures was not specified. This meant that the
Architectures of the host were used. If the host has added
additional architectures using `dpkg --add-architecture` then
elbe would require these architectures to be available on
mirrors. If the extra unneeded architectures were not on the
mirror, the cache update would fail, causing considerable
confusion for the users.

elbe should not pull such information from the host and certainly
not expect the XML mirrors to provide foreign architectures of
the host.

Explicitly set Architectures to the system architecture. Users
can still add additional architectures via
`dpkg --add-architecture` in finetuning commands.

Signed-off-by: John Ogness <john.ogness at linutronix.de>
---
 elbepack/virtapt.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elbepack/virtapt.py b/elbepack/virtapt.py
index 2c2354be..8adb7859 100644
--- a/elbepack/virtapt.py
+++ b/elbepack/virtapt.py
@@ -41,6 +41,7 @@ class VirtApt:
             self.add_pubkey_url (k)
 
         apt_pkg.config.set ("APT::Architecture", arch)
+        apt_pkg.config.set ("APT::Architectures", arch)
         apt_pkg.config.set ("Acquire::http::Proxy::127.0.0.1", "DIRECT")
         apt_pkg.config.set ("APT::Install-Recommends", "0")
         apt_pkg.config.set ("Dir", self.projectpath)
-- 
2.11.0



More information about the elbe-devel mailing list