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

Torben Hohn torben.hohn at linutronix.de
Thu Feb 11 08:47:20 CET 2021


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>
---
 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)
-- 
2.20.1



More information about the elbe-devel mailing list