The last time I can claim that this was working must be June 12 (when the package was last updated)
How to reproduce:
osc co openSUSE:Factory/bundle-lang-common
cd openSUSE:Factory/bundle-lang-common
spec-cleaner bundle-lang-common.spec
usually the script is started with -i, but it makes no difference)
This leads to this error:
Traceback (most recent call last):
File "/usr/bin/spec-cleaner", line 11, in <module>
load_entry_point('spec-cleaner==0.9.7', 'console_scripts', 'spec-cleaner')()
File "/usr/lib/python3.6/site-packages/spec_cleaner/__init__.py", line 114, in main
cleaner.run()
File "/usr/lib/python3.6/site-packages/spec_cleaner/rpmcleaner.py", line 277, in run
self.current_section.output(self.fout, self._check_for_newline(new_class, line), new_class.__name__)
File "/usr/lib/python3.6/site-packages/spec_cleaner/rpmpreamble.py", line 486, in output
lines = self.paragraph.flatten_output(self.subpkglicense)
File "/usr/lib/python3.6/site-packages/spec_cleaner/rpmpreambleelements.py", line 314, in flatten_output
self.items[i] = self._remove_duplicates(self.items[i])
File "/usr/lib/python3.6/site-packages/spec_cleaner/rpmpreambleelements.py", line 229, in _remove_duplicates
if item.name == element.name and item.prefix == element.prefix:
AttributeError: 'str' object has no attribute 'name'
Spec-cleaner is being used in order to get the bundle-lang-common (autogenerated) spec files somewhat readable.
Since a recent update this seems no longer to work. My history of spec-cleaner:
The last time I can claim that this was working must be June 12 (when the package was last updated)
How to reproduce:
osc co openSUSE:Factory/bundle-lang-common cd openSUSE:Factory/bundle-lang-common spec-cleaner bundle-lang-common.spec usually the script is started with -i, but it makes no difference)
This leads to this error: