[elbe-devel] [PATCH v3 3/6] Add support to specify the architecture on the extra urls mirrors.

Olivier Dion dion at linutronix.de
Mon Jun 15 15:52:40 CEST 2020


On Mon, 15 Jun 2020, Kory Maincent <kory.maincent at bootlin.com> wrote:
> If an extra mirror url contains packages only for a specific architecture,
> tell apt to use only this architecture. Use an 'arch' attribute in the url
> element of the xml file project desciption.
>
> Signed-off-by: Kory Maincent <kory.maincent at bootlin.com>
> ---
>  elbepack/elbexml.py | 5 ++++-
>  schema/dbsfed.xsd   | 7 +++++++
>  2 files changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/elbepack/elbexml.py b/elbepack/elbexml.py
> index 7329e4c..fe23213 100644
> --- a/elbepack/elbexml.py
> +++ b/elbepack/elbexml.py
> @@ -182,8 +182,11 @@ class ElbeXML(object):
>                  mirror.append("deb-src [%s] %s %s main" % (' '.join(options),
>                                    pmirror, self.prj.text("suite")))
>  
> -            if self.prj.has("mirror/url-list") and not hostsdk:
> +            if self.prj.has("mirror/url-list"):
>                  for url in self.prj.node("mirror/url-list"):
> +                    if 'arch' in url.et.attrib:
> +                        options[1] = "arch=%s" % url.et.attrib["arch"]

I'm not very happy with options being mutated here.

Acked-by: Olivier Dion <dion at linutronix.de>

-- 
Olivier Dion
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen



More information about the elbe-devel mailing list