[Distutils] AssertionError when building rpm under RedHat 9.1

Ricardo Niederberger Cabral nieder@mail.ru
Mon Apr 28 22:43:04 2003


>From distutils __version__ = "1.0.3":

  File "distutils/command/bdist_rpm.py", line 316, in run
    assert len(rpms) == 1, \
AssertionError: unexpected number of RPM files found: ['build/bdist.linux-i686/rpm/RPMS/i386/imgSeek-0.7-1.i386.rpm', 'build/bdist.linux-i686/rpm/RPMS/i386/imgSeek-debuginfo-0.7-1.i386.rpm']

I had to remove the assert statement on bdist_rpm.py:316 in order to build my rpm.
Would it be possible to change from "assert len(rpms) == 1" to "assert len(rpms) >= 1" ? Since rpmbuild from RH seems to always generate this extra -debuginfo rpm.

Best regards,
-- 
rnc <nieder|at|mail.ru>