On 02/10/2018 01:39, John Paul Adrian Glaubitz wrote:
Hi!
RPM/DPKG uses a different version ordering than Python. In particular, Python has a different logic for pre-releases. While DPKG/RPM uses the tilde for lowering version numbers meaning that RC versions have to be constructed as something like "1.0.0~rc2", Python uses "1.0.0rc2".
This means, that for Python, "1.0.0rc2" is a lower version than "1.0.0" while for DPKG/RPM, "1.0.0rc2" is actually higher than "1.0.0".
Since lots of Python packages with the rc-suffix exist, I assume there is a consensus in openSUSE on how to map Python RC versions to RPM RC versions, isn't there?
What's the suggested strategy? Are there any example packages?
Adrian
My alpha / beta / rc packages all use ~ its a bit of a pain because you need to pass -n to the setup macro's etc, but otherwise users wont be able to upgrade from 1.0.0rc2 too 1.0.0 as rpm would treat it as a downgrade. cheers -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B