[Rpm-maint] [rpm-software-management/rpm] Python dist RPM generators errors are silently ignored + local version identifiers fail (#1183)
Miro Hrončok
notifications at github.com
Sun Apr 19 08:10:20 UTC 2020
>From https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/JWCV2PG2EG5TCPMJAHWM7B54SMHT6A4V/
And from https://koji.fedoraproject.org/koji/buildinfo?buildID=1495361
The upstream version is "weird". The RPM dist generator fails with:
```
Traceback (most recent call last):
File "/usr/lib/rpm/pythondistdeps.py", line 379, in <module>
spec_list.append(convert(name, spec[0], spec[1]))
File "/usr/lib/rpm/pythondistdeps.py", line 125, in convert
return OPERATORS[operator](name, operator, version_id)
File "/usr/lib/rpm/pythondistdeps.py", line 79, in convert_equal
return '{} = {}'.format(name, version)
File "/usr/lib/rpm/pythondistdeps.py", line 47, in __str__
while self.version[-1] == 0:
IndexError: list index out of range
```
The builds goes on.
There are 3 things I'd liek to see fixed:
- the traceback should say: `Cannot process Python package version: 0+unknown`
- the build should abort
- the version is [actually valid](https://www.python.org/dev/peps/pep-0440/#local-version-identifiers)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1183
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200419/41047811/attachment.html>
More information about the Rpm-maint
mailing list