Ticket #3292 enhancement closed fixed
Make tap2rpm work with modern versions of RPM.
| Reported by: | TimAllen | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Keywords: | review |
| Cc: | Jerub, exarkun, thijs, radix | Branch: |
branches/modern-tap2rpm-3292
(diff, github, buildbot, log) |
| Author: | TimAllen | Launchpad Bug: |
Description
I tried to run tap2rpm on a .tac file today, but rpm failed:
Starting build...
======================================================================
error: Legacy syntax is unsupported: copyright
error: line 5: Unknown tag: Copyright: Unknown
Done with build...
======================================================================
Traceback (most recent call last):
File "/usr/bin/tap2rpm", line 17, in ?
tap2rpm.run()
File "/usr/lib/python2.4/site-packages/twisted/scripts/tap2rpm.py", line 265, in run
rpm_path = glob.glob(os.path.join(tmp_dir, 'RPMS', 'noarch', '*'))[0]
IndexError: list index out of range
It looks like rpm doesn't like the Copyright property in the .spec template that tap2rpm uses; according to this (old) RPM manual the Copyright property is deprecated. The attached patch fixes it for me.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

