diff options
author | Luke Shumaker <lukeshu@proton.parabola.nu> | 2018-07-18 05:12:11 +0100 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2019-03-10 01:08:41 -0500 |
commit | f20dfd1b4c1f73b381b975f8fabc16465fbbc95b (patch) | |
tree | ad28e5cdad9c0c435282faf070f30d3e121ded26 | |
parent | fb2b8187a6b41760eeda8f61c3b4abe5b28310aa (diff) |
reporead: set the phony any arches to be valid arch names
-rw-r--r-- | devel/management/commands/reporead.py | 2 | ||||
-rw-r--r-- | main/fixtures/arches.json | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py index 8f945ba2..52a9758e 100644 --- a/devel/management/commands/reporead.py +++ b/devel/management/commands/reporead.py @@ -595,7 +595,7 @@ def read_repo(primary_arch, repo_file, options): for package in packages: if package.arch == 'any': - setattr(package, 'arch', 'any (%s)' % primary_arch.name) + setattr(package, 'arch', 'any_%s' % primary_arch.name) if package.arch in packages_arches: packages_arches[package.arch].append(package) else: diff --git a/main/fixtures/arches.json b/main/fixtures/arches.json index 3747769c..767f16e3 100644 --- a/main/fixtures/arches.json +++ b/main/fixtures/arches.json @@ -40,7 +40,7 @@ "model": "main.arch", "fields": { "agnostic": true, - "name": "any (i686)", + "name": "any_i686", "required_signoffs": 1 } }, @@ -49,7 +49,7 @@ "model": "main.arch", "fields": { "agnostic": true, - "name": "any (x86_64)", + "name": "any_x86_64", "required_signoffs": 1 } }, @@ -58,7 +58,7 @@ "model": "main.arch", "fields": { "agnostic": true, - "name": "any (armv7h)", + "name": "any_armv7h", "required_signoffs": 1 } } |