summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/distutils')
-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()