Kaydet (Commit) 975a80d7 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Patch #619493: Prefer rpmbuild over rpm if available.

üst cb462f29
......@@ -280,6 +280,9 @@ class bdist_rpm (Command):
# build package
self.announce('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