summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Hrdina <phrdina@redhat.com>2014-10-07 11:54:15 +0200
committerPavel Hrdina <phrdina@redhat.com>2014-10-07 13:08:55 +0200
commit02cc5d62bd844bc7abbc15be23b26f6ca11ea45e (patch)
tree4d560078fbe352c6cc8e62f38938ebcc86612ed9
parent5346d9d9a30b8ce53a0dccfa40492cb03ed53119 (diff)
downloadlibvirt-python-02cc5d62bd844bc7abbc15be23b26f6ca11ea45e.tar.gz
setup.py: fix rpm build to return 1 on error
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
-rwxr-xr-xsetup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 0c34ae1..c6a9ce3 100755
--- a/setup.py
+++ b/setup.py
@@ -245,8 +245,8 @@ class my_rpm(Command):
"""
self.run_command('sdist')
- os.system('rpmbuild -ta --clean dist/libvirt-python-%s.tar.gz' %
- self.distribution.get_version())
+ self.spawn(["/usr/bin/rpmbuild", "-ta", "--clean",
+ "dist/libvirt-python-%s.tar.gz" % self.distribution.get_version()])
class my_test(Command):
user_options = [