-
Notifications
You must be signed in to change notification settings - Fork 42
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
Handling version mismatches #23
Comments
Good observation, but I don't think it is aconfmgr's job to update the system. In fact, I'm aware of at least one situation where updating the system is not wanted: when recording changes to the configuration of a system which is not up-to-date. Arch Linux regularly replaces some packages with others, and updating packages can change files in the aconfmgr configuration, and these changes would then be unnecessarily difficult to sort out from those done by the user directly. Though this applies to
aconfmgr performs one pacman invocation to install all missing native packages: Line 1015 in 8088088
So, I'm not sure if there's anything worth changing in aconfmgr. The observation may warrant being documented. Additionally, you could probably add the |
Fair enough. I agree that For the moment, I may just add |
As of bf73896, you can check As far as I can see, there are no actionable points left in this issue, so I'm going to close it. |
Currently, aconfmgr does not upgrade packages to the latest version when running
aconfmgr apply
. This means that runningaconfmgr apply
on two different systems can result in inconsistent states, since the systems might have different versions of the same package. It would be nice ifaconfmgr
automatically kept packages up-to-date.One way would be to run
pacman --sync --needed
for every package in the configuration, rather than trying to determine manually which packages are already installed. Of course, it would also be necessary to runpacman --sync --refresh
first.I think this would also be a significant performance win. Instead of calling
pacman
once for every package, one could just use something like:Thanks for taking a look at this! I may have time to implement this myself, if there's interest.
The text was updated successfully, but these errors were encountered: