apertis-pkg-pull-updates is confuses 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
-
always - often, but not always
- 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