[Python-checkins] python/dist/src/Lib/distutils/command bdist_rpm.py,1.27.6.1,1.27.6.2

loewis@users.sourceforge.net loewis@users.sourceforge.net
Sun, 06 Oct 2002 22:56:44 -0700


Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory usw-pr-cvs1:/tmp/cvs-serv13168

Modified Files:
      Tag: release22-maint
	bdist_rpm.py 
Log Message:
Patch #619493: Prefer rpmbuild over rpm if available.


Index: bdist_rpm.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/bdist_rpm.py,v
retrieving revision 1.27.6.1
retrieving revision 1.27.6.2
diff -C2 -d -r1.27.6.1 -r1.27.6.2
*** bdist_rpm.py	25 Mar 2002 13:13:45 -0000	1.27.6.1
--- bdist_rpm.py	7 Oct 2002 05:56:42 -0000	1.27.6.2
***************
*** 281,284 ****
--- 281,287 ----
          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')