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-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=da9fca7a1084a84b94ee34d33e8d0cc5d4772330;p=ceph.git script/build-with-container: fix rpmbuild when no rpm build args are set Signed-off-by: John Mulligan --- diff --git a/src/script/build-with-container.py b/src/script/build-with-container.py index 73c41213d29c9..270f0a20558ff 100755 --- a/src/script/build-with-container.py +++ b/src/script/build-with-container.py @@ -723,7 +723,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,