-
Notifications
You must be signed in to change notification settings - Fork 13
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
No way to download packages only in case of a conflict #50
Comments
It looks like it is that way on purpose: https://gitlab.archlinux.org/pacman/pacman/-/blob/master/src/pacman/pacman.c#L772 since https://gitlab.archlinux.org/pacman/pacman/-/commit/1bd8f57a183db0b9be503eeff3027c4b8d65627d We could ask upstream about it, if there is a good usecase/reason. |
Thank you for providing origin of this behavior. I suspect it's to ensure non-interactiveness of My usecase, not sure whether it's a good one, is that I always download first (one pacman invocation) before installing (another pacman invocation). And this behavior makes it impossible to do, unless I'm missing something. |
Good point. We patch pacman to make "--noconfirm" default to resolving the conflict bb871d9 With upstream pacman there is no good way to have it non-interactive with conflicts. |
I've moved this issue to our pacman fork, but I'm currently unsure on how to proceed. |
Just a follow up to my own comment:
Isn't So I'm thinking if it wouldn't be better to add |
Thanks. I should have created it here from the get go.
My idea expressed in previous comment may be sufficient way to deal with it, or so I hope, but I am not familiar with pacman source code, so there may be some corner cases which make it harder than it seems on the surface. I will try to report the issue upstream. I don't have Arch Linux account yet, but requested one. |
I just created upstream issue: |
This error has nothing to do with conflicts. Hence you are not being asked any questions. It is due to a failure in dependency resolution (gcc is updated but gcc-{ada,objc,libgccjit} are not?). Using -d would work around this issue. Using -y would probably fix it! |
In fact... with conflicts, the ALPM_TRANS_FLAG_NOCONFLICTS flag means this would just plow on through and download the packages. |
When
So it has been linked to conflicts due to messages like
Using
Initially I did |
gcc-ada had a versioned dependency on gcc previously. In the new update gcc-ada was completely dropped from the repo. To allow users that had gcc-ada installed to upgrade smoothly we added a conflict to the main gcc package on gcc-ada, so that if gcc is upgraded gcc-ada is removed first. (using ada as an example, the same is true for objc,libgccjit) |
Ah - a complicated update... -Suw ignored the conflicts and tried to progress but hit dependency version errors. Interesting question whether we should ignore dependency errors on -Suw. We still want dependency resolving to happen, so at most I would consider ignoring version only dependency issues. But I am not at all convinced that is a good idea! |
Description / Steps to reproduce the issue
pacman -Suw
fails, but I think it should ask series of questions similarly likepacman -Su
does.Expected behavior
Successful download of upgraded packages.
Actual behavior
Verification
Windows Version
MSYS_NT-10.0-22631
MINGW environments affected
Are you willing to submit a PR?
No
The text was updated successfully, but these errors were encountered: