]> 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)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 12 Jun 2025 13:37:00 +0000 (09:37 -0400)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/script/build-with-container.py

index 73c41213d29c9931cdfd543626430e76a990b3d1..270f0a20558ffec8137302240959df16392bb90f 100755 (executable)
@@ -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,