psychoinformatics-de / datalad-debian

DataLad extension for working with Debian packages and package repositories
Other
2 stars 5 forks source link

Sort package version prior updating the APT archive #105

Open mih opened 2 years ago

mih commented 2 years ago

ATM the are processed in the order that datalad diff reveals them. This migh lead to reprepro refusing older version when newer ones have been ingested before.

This can be fixed by sorting.

python-debian provides facilities for that: https://salsa.debian.org/python-debian-team/python-debian/-/blob/master/lib/debian/debian_support.py

However, in order to cover all corner-cases, we need to add python-apt to the list of dependencies, and possibly limit the machines this command can run on to Debian/Linux and derivatives.