aptly-dev / aptly

aptly - Debian repository management tool
https://www.aptly.info/
MIT License
2.56k stars 371 forks source link

Keep only latest version of package #248

Open Tom-alreadytaken opened 9 years ago

Tom-alreadytaken commented 9 years ago

When I have a snapshot from a given repo and want to merge it ( -latest ) with a snapshot from my security-mirror, then I would like to get a resulting snapshot with the same packages as in my original repo-snapshot, only having the latest version of each package in there. Instead, atply is merging all packages from the security snapshot into the resilting snapshot. So what I ask for is an additional option to "aptly snapshot merge -latest", like "leftsidemerge", which result in aptly taking the list of packages from the first given snapshot and only add newer version of these packages from the following snapshots to the resulting snapshot, ingnoring all other packes in the the other snapshots.

sliverc commented 6 years ago

Some work has been started in https://github.com/aptly-dev/aptly/tree/package-version-slice to expand filter command but unfortunately hasn't been finished yet. If some is keen to pick up the pieces would be appreciated.

smira commented 6 years ago

That's something I started, but I got stuck around the evaluation of the query. Any other kind of query could be executed both for the package list and for one package, but package version slice operator should work only on package lists. So if that operator is used, query should be applied only to package lists, which probably implies that it can't be combined with 'not' operator.

andrewshadura commented 2 years ago

@lbolla, has this been fixed? If yes, how?

lbolla commented 2 years ago

@andrewshadura I suspect this was closed by mistake, as there were indeed recent comments.

nook24 commented 1 year ago

Would be a great feature!