aboutsummaryrefslogtreecommitdiff
path: root/gbp/scripts/buildpackage_rpm.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-10-09 11:30:32 +0200
committerGuido Günther <agx@sigxcpu.org>2016-10-09 13:10:00 +0200
commit43beb386357cbf572f7c593644ac497a52e14cb0 (patch)
treec7c38d27f741132a63057f9bf159d6f8a3bba849 /gbp/scripts/buildpackage_rpm.py
parente4c893da66bcf4d757e25ac68958deb0ad1eb5c6 (diff)
GitRepository.archive: use _git_inout
instead of the deprecated _git_getoutput that spews to stderr This silences a spurious output to stderr in test_buildpackage_rpm
Diffstat (limited to 'gbp/scripts/buildpackage_rpm.py')
-rw-r--r--gbp/scripts/buildpackage_rpm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/scripts/buildpackage_rpm.py b/gbp/scripts/buildpackage_rpm.py
index 8c131f3..4129ee8 100644
--- a/gbp/scripts/buildpackage_rpm.py
+++ b/gbp/scripts/buildpackage_rpm.py
@@ -78,8 +78,8 @@ def git_archive(repo, spec, output_dir, treeish, prefix, comp_level,
git_archive_single(treeish, output, prefix,
spec.orig_src['compression'], comp_level,
comp_opts, spec.orig_src['archive_fmt'])
- except (GitRepositoryError, CommandExecFailed):
- gbp.log.err("Error generating submodules' archives")
+ except (GitRepositoryError, CommandExecFailed) as e:
+ gbp.log.err("Error generating submodules' archives: %s" % e)
return False
return True