Browse Source

deb_driver: Translate repository.architecture

When generating repository metadata, the Release file gets the
architecture list in an untranslated format, ending up with
'x86_64' instead of 'amd64'.

Closes-bug: 1638628

Change-Id: I8471db6d54157175ff275c969ed5195d4616fa0f
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Alexandru Avadanii 2 years ago
parent
commit
874d9bd900
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      packetary/drivers/deb_driver.py

+ 2
- 1
packetary/drivers/deb_driver.py View File

@@ -409,7 +409,8 @@ class DebRepositoryDriver(RepositoryDriverBase):
409 409
         release.setdefault("Description", "The packages repository.")
410 410
 
411 411
         keys = ("Architectures", "Components")
412
-        values = (repository.architecture, repository.section[1])
412
+        values = (_ARCHITECTURES[repository.architecture],
413
+                  repository.section[1])
413 414
         for key, value in six.moves.zip(keys, values):
414 415
             if key in release:
415 416
                 release[key] = utils.append_token_to_string(

Loading…
Cancel
Save