]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
script/build-with-container: fix rpmbuild when no rpm build args are set
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 8 May 2025 15:21:11 +0000 (11:21 -0400)
committerDavid Galloway <david.galloway@ibm.com>
Thu, 31 Jul 2025 21:14:54 +0000 (17:14 -0400)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit da9fca7a1084a84b94ee34d33e8d0cc5d4772330)

src/script/build-with-container.py

index 997884310ab524d0c142f3ca8b6cebb727c3ddd6..a5e8a4fe950da04f66c7cbc52be0da1957324fee 100755 (executable)
@@ -732,7 +732,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,