diff options
-rw-r--r-- | gbp/rpm/__init__.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gbp/rpm/__init__.py b/gbp/rpm/__init__.py index 45f83bc2..5784a7a9 100644 --- a/gbp/rpm/__init__.py +++ b/gbp/rpm/__init__.py @@ -94,9 +94,11 @@ class SrcRpmFile(object): Unpack the source rpm to tmpdir. Leave the cleanup to the caller in case of an error. """ - gbpc.RunAtCommand('rpm2cpio', - [self.srpmfile, '|', 'cpio', '-id'], - shell=True, capture_stderr=True)(dir=dest_dir) + c = gbpc.RunAtCommand('rpm2cpio', + [self.srpmfile, '|', 'cpio', '-id'], + shell=True, capture_stderr=True) + c.run_error = "'%s' failed: {stderr}" % (" ".join([c.cmd] + c.args)) + c(dir=dest_dir) class SpecFile(object): |