def build_srpm(self, source, log_filename,
                   release=None, with_tests=False):
        cmdline = self._start_cmdline() + ["--source-only", "--debug"]
        if release is not None:
            cmdline.extend(["--release", release])
        if with_tests:
            cmdline.append("--with-tests")
        cmdline.extend(["--", source])
        out_filename = sh.joinpths(self._log_dir,
                                   log_filename % "py2rpm-build-%s.log")
        sh.execute_save_output(cmdline, out_filename, cwd=source)
dataset/ETHPy150Open openstack/anvil/anvil/packaging/helpers/py2rpm_helper.py/Helper.build_srpm/swapped operands of `%`