Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 45a1494

Browse files
n0npaxcsabella
authored andcommitted
bpo-11122: fix hardcoded path checking for rpmbuild in bdist_rpm.py (GH-10594)
1 parent e119b3d commit 45a1494

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

Lib/distutils/command/bdist_rpm.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,7 @@ def run(self):
309309

310310
# build package
311311
log.info("building RPMs")
312-
rpm_cmd = ['rpm']
313-
if os.path.exists('/usr/bin/rpmbuild') or \
314-
os.path.exists('/bin/rpmbuild'):
315-
rpm_cmd = ['rpmbuild']
312+
rpm_cmd = ['rpmbuild']
316313

317314
if self.source_only: # what kind of RPMs?
318315
rpm_cmd.append('-bs')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Distutils won't check for rpmbuild in specified paths only.

0 commit comments

Comments
 (0)