Commit 2dc3968b authored by Anthony Baxter's avatar Anthony Baxter

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!)
parent 10fc69e6
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment