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

Manuel Traut manuel.traut at linutronix.de
Fri Dec 8 18:48:09 CET 2017


On Wed, Dec 06, 2017 at 10:12:31PM +0100, John Ogness wrote:
> 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>

thanks, applied to devel/elbe-3.0

> ---
>  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
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel



More information about the elbe-devel mailing list