Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Keeping only X versions of a package #55

Open
KlavsKlavsen opened this issue Apr 12, 2017 · 1 comment
Open

Feature request: Keeping only X versions of a package #55

KlavsKlavsen opened this issue Apr 12, 2017 · 1 comment

Comments

@KlavsKlavsen
Copy link

We use freight for software repos - where we build ourself - and hence we get a lot of new versions.. and currently freight has no support for even removing packages from repo.. so we have manually remove files and run freight cache..

It would be nice if freight handled freight-remove - and a bonus if freight could be configured to only keep max X instances of a certain package.

@laurvas
Copy link

laurvas commented Aug 12, 2017

I am not a freight developer, but I've read it's source code. The main problem here is to compare package versions. You can do it simply on Debian host by running dpkg --compare-versions, but there are no existing tools on other systems to do that.

Freight is designed to be portable and it can't rely on debian-only utils, so it should have it's own implementation of Debian version comparison algorithm. I think it is not an easy task, especially in POSIX shell. Freight aims to be small and simple and I don't think it's worth implementing.

I can suggest you 2 solutions:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants