summaryrefslogtreecommitdiffstats
path: root/patches/packetary/0001-deb_driver-Translate-repository.architecture.patch
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2016-11-15 21:07:48 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-15 21:07:48 +0000
commitffe9e2101d566c8e1e4a71be8477d7c6d25805a0 (patch)
treeb8885d66109d6a3374cdc2bd0a2793196812510a /patches/packetary/0001-deb_driver-Translate-repository.architecture.patch
parent7eb132e3d66f1f78dc0b4acc41240149967d8c85 (diff)
parentb26467eac82e9b8d7b44878a99dd89dfe9f398b7 (diff)
Merge "AArch64: Ubuntu local partial mirror: Add arm64"
Diffstat (limited to 'patches/packetary/0001-deb_driver-Translate-repository.architecture.patch')
-rw-r--r--patches/packetary/0001-deb_driver-Translate-repository.architecture.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/patches/packetary/0001-deb_driver-Translate-repository.architecture.patch b/patches/packetary/0001-deb_driver-Translate-repository.architecture.patch
new file mode 100644
index 00000000..18f20015
--- /dev/null
+++ b/patches/packetary/0001-deb_driver-Translate-repository.architecture.patch
@@ -0,0 +1,30 @@
+From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+Date: Thu, 27 Oct 2016 22:24:28 +0200
+Subject: [PATCH] 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>
+---
+ packetary/drivers/deb_driver.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/packetary/drivers/deb_driver.py b/packetary/drivers/deb_driver.py
+index ece9fa1..929bdca 100644
+--- a/packetary/drivers/deb_driver.py
++++ b/packetary/drivers/deb_driver.py
+@@ -409,7 +409,8 @@ class DebRepositoryDriver(RepositoryDriverBase):
+ release.setdefault("Description", "The packages repository.")
+
+ keys = ("Architectures", "Components")
+- values = (repository.architecture, repository.section[1])
++ values = (_ARCHITECTURES[repository.architecture],
++ repository.section[1])
+ for key, value in six.moves.zip(keys, values):
+ if key in release:
+ release[key] = utils.append_token_to_string(