FS#19854 - --ignore is ignored
Attached to Project:
Pacman
Opened by Taylan Ulrich B. (taylanub) - Friday, 18 June 2010, 15:53 GMT
Last edited by Allan McRae (Allan) - Saturday, 05 February 2011, 11:41 GMT
Opened by Taylan Ulrich B. (taylanub) - Friday, 18 June 2010, 15:53 GMT
Last edited by Allan McRae (Allan) - Saturday, 05 February 2011, 11:41 GMT
|
Details
The --ignore option doesn't seem to work.
Tried IgnorePkg and IgnoreGroup in pacman.conf too; they don't work either. P.S.: PUN! |
This task depends upon
Closed by Allan McRae (Allan)
Saturday, 05 February 2011, 11:41 GMT
Reason for closing: Fixed
Additional comments about closing: pacman-3.4.3
Saturday, 05 February 2011, 11:41 GMT
Reason for closing: Fixed
Additional comments about closing: pacman-3.4.3
:: Starting full system upgrade...
warning: mkinitcpio: ignoring package upgrade (0.6.5-1 => 0.6.6-1)
there is nothing to do
Can you post the "--debug output". My guess is that another package is forcing the install as a dep.
(Seems to work with -Su.)
My command:
pacman -Sd games --ignore gate88 --debug
(Chose a tiny group and disabled dep-checking to keep the output brief.)
The attachment shows the stdout.
I also tried with adding 'gate88' to IgnorePkg in the config file, and the *sole* difference is this line:
debug: config: IgnorePkg: gate88
(Appearing where it's expected, after the line mentioning SyncFirst, since it's prior to IgnorePkg in the config file.)
It does appear that our groups handing doesn't honor ignore directives anymore. You can see this in the standard arch repos too:
dmcgee@galway ~
$ pacman -Sg rox-desktop
rox-desktop mime-editor
rox-desktop rox-lib
dmcgee@galway ~
$ sudo pacman -S rox-desktop --ignore mime-editor
Password:
resolving dependencies...
looking for inter-conflicts...
Targets (2): rox-lib-2.0.5-1 mime-editor-0.5-1
Culprit: b4317a740ac2d4f5e4d1aa56a97171c52be70d02
Reason: _alpm_sync_pkg() never errors out with PM_ERR_PKG_IGNORED; we don't check ignore lists at all in there.
I think we have a solution to this going on
FS#19853, as we kind of screwed up groups in 3.4.x in a lot of small ways that none of us realized.I would actually find it nicer if it correctly ignored package without the prompt.
Peter patch should be fine, it's probably how I meant to write this code originally.
But we can also just apply two patches from Jakob :
http://github.com/schuay/pacman-arch/commits/group_backend
http://github.com/schuay/pacman-arch/commit/7891073c6a817474f4eeb5b84350d720420d2502 (simple refactoring)
http://github.com/schuay/pacman-arch/commit/eeb0f68b652719ad0746d26233a2df13031ef7d4 (handle --ignore with a prompt)
Sorry for the trouble, I am quite unhappy I let this go through, and that this bug remained all this time without any fixes.
FS#19853is especially bad because it happened together with this one, and this was never supposed to happen.I hope we can fix this bug in maint as quickly as possible.
About
FS#19853, we might make the situation better in master for a next major release.p -S rox-desktop --ignore mime-editor
Password:
:: mime-editor is in IgnorePkg/IgnoreGroup. Install anyway? [Y/n] n
warning: skipping target: mime-editor
resolving dependencies...
looking for inter-conflicts...
Targets (1): rox-lib-2.0.5-3
Total Download Size: 0.13 MB
Total Installed Size: 0.94 MB
Proceed with installation? [Y/n]