From: Martin v. Löwis Date: Mon, 7 Oct 2002 05:57:21 +0000 (+0000) Subject: Patch #619493: Prefer rpmbuild over rpm if available. Backported to 2.2. X-Git-Tag: v2.3c1~3868 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb20bb6bdb01596fac70b86949d045a45d7519d8;p=thirdparty%2FPython%2Fcpython.git Patch #619493: Prefer rpmbuild over rpm if available. Backported to 2.2. --- diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py index bbaad7dc7b19..86a40947b4c8 100644 --- a/Lib/distutils/command/bdist_rpm.py +++ b/Lib/distutils/command/bdist_rpm.py @@ -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: