From b655569e6b2e6d04d466be9f4363797cf883ba25 Mon Sep 17 00:00:00 2001 From: Robert Cerven Date: Nov 04 2019 14:29:15 +0000 Subject: Isolated container-build should allow arches override * OSBS-8025 Signed-off-by: Robert Cerven --- diff --git a/pyrpkg/__init__.py b/pyrpkg/__init__.py index b139fe0..2ae596e 100644 --- a/pyrpkg/__init__.py +++ b/pyrpkg/__init__.py @@ -3133,9 +3133,10 @@ class Commands(object): scratch = opts.get('scratch') arches = opts.get('arches') + isolated = opts.get('isolated') if arches: - if not scratch: - raise rpkgError('Cannot override arches for non-scratch builds') + if not (scratch or isolated): + raise rpkgError('Cannot override arches for non-scratch and non-isolated builds') task_opts['arch_override'] = ' '.join(arches) if flatpak: diff --git a/pyrpkg/cli.py b/pyrpkg/cli.py index 0036136..8dfe895 100644 --- a/pyrpkg/cli.py +++ b/pyrpkg/cli.py @@ -1566,7 +1566,7 @@ see API KEY section of copr-cli(1) man page. '--arches', action='store', nargs='*', - help='Limit a scratch build to an arch. May have multiple arches.') + help='Limit a scratch or a isolated build to an arch. May have multiple arches.') parser.add_argument( '--skip-remote-rules-validation',