Mailing List Archive

python/dist/src/Lib/distutils/command bdist_rpm.py,1.31,1.32
Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory usw-pr-cvs1:/tmp/cvs-serv13493

Modified Files:
bdist_rpm.py
Log Message:
Patch #619493: Prefer rpmbuild over rpm if available. Backported to 2.2.


Index: bdist_rpm.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/bdist_rpm.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** bdist_rpm.py 11 Sep 2002 16:31:52 -0000 1.31
--- bdist_rpm.py 7 Oct 2002 05:57:21 -0000 1.32
***************
*** 283,286 ****
--- 283,289 ----
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')