From bb20bb6bdb01596fac70b86949d045a45d7519d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Mon, 7 Oct 2002 05:57:21 +0000 Subject: [PATCH] Patch #619493: Prefer rpmbuild over rpm if available. Backported to 2.2. --- Lib/distutils/command/bdist_rpm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py index bbaad7dc7b..86a40947b4 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: -- 2.50.0