[elbe-devel] [PATCH 1/2] elbexml: rename buildtype parameter to arch

Bastian Germann bage at linutronix.de
Thu Feb 11 09:39:58 CET 2021


Am 11.02.21 um 08:47 schrieb Torben Hohn:
> validate_apt_sources expects the debian architecture as "buildtype"
> 
> prevent confusion and rename the parameter to arch.
> 
> Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>

Reviewed-by: Bastian Germann <bage at linutronix.de>

> ---
>   elbepack/elbexml.py | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/elbepack/elbexml.py b/elbepack/elbexml.py
> index fb488bb00..7f5d88933 100644
> --- a/elbepack/elbexml.py
> +++ b/elbepack/elbexml.py
> @@ -248,7 +248,7 @@ class ElbeXML:
>           fp.close()
>           return ret
>   
> -    def validate_apt_sources(self, url_validation, buildtype):
> +    def validate_apt_sources(self, url_validation, arch):
>   
>           # pylint: disable=too-many-locals
>           # pylint: disable=too-many-branches
> @@ -295,7 +295,7 @@ class ElbeXML:
>                       r["url"] = "%s/dists/%s/" % (url, suite)
>   
>                   if line.startswith("deb "):
> -                    r["binstr"] = (section + "/binary-%s/Packages" % buildtype)
> +                    r["binstr"] = (section + "/binary-%s/Packages" % arch)
>                   else:
>                       r["srcstr"] = (section + "/source/Sources")
>                   repos.append(r)
> 


More information about the elbe-devel mailing list