mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Patch #619493: Prefer rpmbuild over rpm if available. Backported to 2.2.
This commit is contained in:
parent
9cce029e48
commit
bb20bb6bdb
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue