-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
Option to keep old package versions with local repo #668
Conversation
Looks good but don't know about the name. How about |
Can't say I have strong opinions on the naming, |
KeepRepoPackages slightly conflicts because most user's will probably not realise it's to do with local repos. KeepLocalRepoPackages would be too long too. Ideally the config and flag names would be the same. Some times they's a bit different when it's useful for the flag to be short (like --aur) but then lacks a bit of context. Not gonna bike shed forever though KeepRepoPackages is fine. Actually KeepRepoCache may be better actually. It's up to you which sounds better. |
|
Alright this should be it. Renamed and using the new command line system. |
Motivation: I want to use the local repository functionality to keep a record of all versions of AUR packages that I have installed, as there is no equivalent of say the ALA. The git versions of the PKGBUILDs have the drawback of depending on potentially dead external resources. I often find myself clearing the regular cache though and it is far less feasible to centralize it(say for faster installs of AUR packages already installed on my PC on my Laptop).
There might very well be further applications for this that I have not thought of but this is my use case.
Changes: Therefore I would like to keep a record of the packages in the local repository, however this was prevented by the
-R
option being set onrepo-add
. This PR adds a simple set of CLI and config options to optionally disable that flag.