Do not add "-unknown" to version

Without this fix, we get version "1.16.0-unknown" instead of "1.16.0".

That causes python3 to list the package version as uncomparable.

$ pip freeze gpg gpg===1.16.0-unknown

(The triple '='.)

Valid versions would've been:

  • 1.16.0+unknown
  • 1.16.0-dev
  • 1.16.0

Those would show up as:

$ pip freeze gpg gpg==1.16.0

And then >= comparisons from package dependencies will work.

This changeset removes the "-unknown".

See also: https://bugs.launchpad.net/ubuntu/+source/gpgme1.0/+bug/1977645

Merge request reports

Loading