Skip to content

apertis-pkg-pull-updates is confused by epoch in Debian package versions

Background

While rebasing ruby-defaults, apertis-pkg-pull-updates is unable to detect the new verison 1:3.3 from madison:

--- 
ruby-defaults: 
  1:3.3: 
    trixie: 
      - source

When parsing the yaml file with:

    with urllib.request.urlopen(url) as response:
        data = yaml.safe_load(response.read().decode("utf-8"))

The version 1:3.3 is read as 63.3 which is wrong and prevents the new version to be imported automatically.

Reproducibility

How often the issue is hit when repeating the steps to reproduce and changing nothing?

Put the in the most appropriate entry:

  1. always
  2. often, but not always
  3. rarely
import yaml

mad = yaml.safe_load('''
--- 
ruby-defaults: 
  1:3.3: 
    trixie: 
      - source
''')
mad

Impact of bug

The new version is not automatically imported.

Outcomes

TBD

Management data

This section is for management only, it should be the last one in the description.

/cc @em @balasubramanian @sudarshan @wlozano

Phabricator link: https://phabricator.apertis.org/T10964

Edited by Apertis CI robot