Commit d048c412 authored by Marcin Niemira's avatar Marcin Niemira Committed by Cheryl Sabella

bpo-11122: fix hardcoded path checking for rpmbuild in bdist_rpm.py (GH-10594)

parent b30cb467
......@@ -309,10 +309,7 @@ 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']
rpm_cmd = ['rpmbuild']
if self.source_only: # what kind of RPMs?
rpm_cmd.append('-bs')
......
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