[elbe-devel] [PATCH 09/10] repomanager: Add amd64 architecture to ProjectRepo

Torben Hohn torben.hohn at linutronix.de
Thu May 6 14:55:30 CEST 2021


amd64 is the initvm host architecture. It is currently hardcoded
to amd64 in several other places, so we can keep this here too.

When building cross with pbuilder, some packages like qt5 build
host tools (like qmake) for amd64. These are needed in subsequent
builds, and need to be insertable into the Project Repo.

Add amd64 and also fix the string to an list of architectures.
The case when arch is 'amd64' too is covered, because the list
is converted to a set later.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/repomanager.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/repomanager.py b/elbepack/repomanager.py
index b58fb9c3d..d9bd6b86c 100644
--- a/elbepack/repomanager.py
+++ b/elbepack/repomanager.py
@@ -480,7 +480,7 @@ class ToolchainRepo(RepoBase):
 
 class ProjectRepo(RepoBase):
     def __init__(self, arch, codename, path):
-        repo_attrs = RepoAttributes(codename, arch + ' source', "main")
+        repo_attrs = RepoAttributes(codename, [arch, 'amd64', 'source'], "main")
         RepoBase.__init__(self,
                           path,
                           None,
-- 
2.20.1



More information about the elbe-devel mailing list