Skip to content

config: proposal for PEP440 version complying.

While building the ubuntu-release-upgrader package on Ecne, it was found that historically use only number versions:

The initial versioning proposal update on Ecne did not covered PEP 440 checks: e.g.:

    packageversionA=4.5.6-7 #Debian
    packageversionB=4.5.6-7ubuntu3 #Ubuntu
    TRISQUEL_REVISION=9
    N=$TRISQUEL_REVISION
    trisquelversion=trisquel$N
    echo $packageversionA$trisquelversion $packageversionB$trisquelversion 
    4.5.6-7trisquel9 4.5.6-7ubuntu3trisquel9

Compiling ubuntu-release-upgrader binary build fail, due PEP440 versioning complying did not passed.

Note that, not all packages require/check for complying PEP 440 versioning, but the basic Debian APT one.

This MR propose to improve the initial versioning by appending the VERSION helper number to the main package upstream version:

  • Upstream version: 1:24.04.19
  • Trisquel version: 1:24.04.19.15 (and not 1:24.04.19trisquel15)

Avoiding to use +trisquel, as that might bring back the possibility for update conflicts we are moving away in Ecne.

For this proposal we can use one of the two approaches,

  • A) Use a list of packages to apply this adjustment (see details at the changes).
  • B) Use a broader matching rule that will affect any package matching it (see details at the changes).

While this MR contain both options, the final commit will have only the selected one.

Edited by Luis Guzmán

Merge request reports