Enable --debug for py2rpm when building srpm(s)

This allows the output to contain the spec file
created, along with the various stages py2rpm goes through
which can be useful during debugging.

Change-Id: I9ff49ed8b24defedc205522fbc912b234805a9d5
This commit is contained in:
Joshua Harlow 2015-08-10 12:08:41 -07:00
parent 062ecc164c
commit bba43eeb4d
1 changed files with 3 additions and 2 deletions

View File

@ -170,7 +170,8 @@ class Helper(object):
cmdline = self._start_cmdline(escape_values=True)[1:] + [
"--scripts-dir", scripts_dir,
"--source-only",
"--rpm-base", self._rpmbuild_dir
"--rpm-base", self._rpmbuild_dir,
"--debug",
]
executable = " ".join(self._start_cmdline()[0:1])
params = {
@ -193,7 +194,7 @@ class Helper(object):
def build_srpm(self, source, log_filename,
release=None, with_tests=False):
cmdline = self._start_cmdline() + ["--source-only"]
cmdline = self._start_cmdline() + ["--source-only", "--debug"]
if release is not None:
cmdline.extend(["--release", release])
if with_tests: