From 975a80d785000e568664e9872e8a1ba14d0bfa6d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Mon, 7 Oct 2002 05:56:42 +0000 Subject: [PATCH] Patch #619493: Prefer rpmbuild over rpm if available. --- 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 4bc2561324ce..5e5fd61865ef 100644 --- a/Lib/distutils/command/bdist_rpm.py +++ b/Lib/distutils/command/bdist_rpm.py @@ -280,6 +280,9 @@ class bdist_rpm (Command): # build package 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') elif self.binary_only: -- 2.47.3