diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2002-10-07 05:57:21 +0000 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2002-10-07 05:57:21 +0000 |
| commit | 679296fdf3e45a05a0d7ec86ab291b8d871ff598 (patch) | |
| tree | 6b8768558b3848c27f0cfa1e1e5bebf44a79d7c4 | |
| parent | 464cfeaa1514adce324231af0aba80aac19484d6 (diff) | |
| download | python-setuptools-git-679296fdf3e45a05a0d7ec86ab291b8d871ff598.tar.gz | |
Patch #619493: Prefer rpmbuild over rpm if available. Backported to 2.2.
| -rw-r--r-- | command/bdist_rpm.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/command/bdist_rpm.py b/command/bdist_rpm.py index bbaad7dc..86a40947 100644 --- a/command/bdist_rpm.py +++ b/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: |
