Commit 02cc5d62 authored by Pavel Hrdina's avatar Pavel Hrdina

setup.py: fix rpm build to return 1 on error

Signed-off-by: Pavel Hrdina's avatarPavel Hrdina <phrdina@redhat.com>
parent 5346d9d9
......@@ -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 = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment