Commit bb20bb6b authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #619493: Prefer rpmbuild over rpm if available. Backported to 2.2.

parent 9cce029e
......@@ -282,6 +282,9 @@ class bdist_rpm (Command):
# build package
log.info("building RPMs")
rpm_cmd = ['rpm']
if os.path.exists('/usr/bin/rpmbuild') or \
os.path.exists('/bin/rpmbuild'):
rpm_cmd = ['rpmbuild']
if self.source_only: # what kind of RPMs?
rpm_cmd.append('-bs')
elif self.binary_only:
......
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