From: John Mulligan Date: Thu, 8 May 2025 15:21:11 +0000 (-0400) Subject: script/build-with-container: fix rpmbuild when no rpm build args are set X-Git-Tag: v20.1.1~88^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=31f45d7269208a8d0a67d5aff034dbf4b6d9bc30;p=ceph.git script/build-with-container: fix rpmbuild when no rpm build args are set Signed-off-by: John Mulligan (cherry picked from commit da9fca7a1084a84b94ee34d33e8d0cc5d4772330) --- diff --git a/src/script/build-with-container.py b/src/script/build-with-container.py index 3ac94ff886c1..2957be27cb55 100755 --- a/src/script/build-with-container.py +++ b/src/script/build-with-container.py @@ -738,7 +738,7 @@ def bc_build_rpm(ctx): 'rpmbuild', '--rebuild', f'-D_topdir {topdir}', - ] + list(ctx.cli.rpmbuild_arg) + [str(srpm_path)] + ] + list(ctx.cli.rpmbuild_arg or []) + [str(srpm_path)] rpmbuild_cmd = ' '.join(shlex.quote(cmd) for cmd in rpmbuild_args) cmd = _container_cmd( ctx,