summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/bdist_rpm.py
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2004-06-11 17:16:46 (GMT)
committerAnthony Baxter <anthonybaxter@gmail.com>2004-06-11 17:16:46 (GMT)
commitc982bbde1c5012202187b8e398fd631b6cec214b (patch)
treefbad3bdda3a75cf82c524d122e7a2756345db4a4 /Lib/distutils/command/bdist_rpm.py
parent01e80b45d6f2d2b2eac5e81731c3af80f09214c2 (diff)
downloadcpython-c982bbde1c5012202187b8e398fd631b6cec214b.zip
cpython-c982bbde1c5012202187b8e398fd631b6cec214b.tar.gz
cpython-c982bbde1c5012202187b8e398fd631b6cec214b.tar.bz2
Bug 957381: rpmbuild builds a -debuginfo rpm on recent Redhat and Fedora releases.
Ignore it, rather than breaking. Will backport. (and r1.1000 for Misc/NEWS!)
Diffstat (limited to 'Lib/distutils/command/bdist_rpm.py')
-rw-r--r--Lib/distutils/command/bdist_rpm.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py
index 237cc70..4be9999 100644
--- a/Lib/distutils/command/bdist_rpm.py
+++ b/Lib/distutils/command/bdist_rpm.py
@@ -313,10 +313,15 @@ class bdist_rpm (Command):
if not self.source_only:
rpms = glob.glob(os.path.join(rpm_dir['RPMS'], "*/*.rpm"))
+ debuginfo = glob.glob(os.path.join(rpm_dir['RPMS'], \
+ "*/*debuginfo*.rpm"))
+ if debuginfo:
+ rpms.remove(debuginfo[0])
assert len(rpms) == 1, \
"unexpected number of RPM files found: %s" % rpms
self.move_file(rpms[0], self.dist_dir)
-
+ if debuginfo:
+ self.move_file(debuginfo[0], self.dist_dir)
# run()