Skip to content

deb-git-version-gen: Handle switching from non-native to native

Emanuele Aina requested to merge (removed):handle-no-native-to-native into master

When a non-native package is converted to be a native one, we need to ensure that the snapshot version does not contain a debian revision.

For instance, on a package moving from 0.1706.0-0co4 to 0.2020.1 in three commits, the final output changes like this:

from: 0.2020.1~0.1706.0+3+g9c3c6b273f11-0co4
to:   0.2020.1~0.1706.0+0co4+3+g9c3c6b273f11

To be read as "prerelease of 0.2020.1, consisting of 0.1706.0-0co4 plus 3 more commits, the last of which is 9c3c6b273f11".

Edited by Emanuele Aina

Merge request reports