distutils/command/bdist_rpm.py --- distutils/command/bdist_rpm.py.orig 2003-04-11 15:20:19.000000000 +0200 +++ distutils/command/bdist_rpm.py 2003-04-11 15:31:59.000000000 +0200 @@ -311,10 +311,15 @@ 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()