FS#41223 - [pacman] checkupdates (or pacman -Qu) ignores IgnorePkg
Attached to Project:
Pacman
Opened by Steven Honeyman (stevenhoneyman) - Wednesday, 16 July 2014, 19:28 GMT
Last edited by Allan McRae (Allan) - Thursday, 28 May 2015, 04:43 GMT
Opened by Steven Honeyman (stevenhoneyman) - Wednesday, 16 July 2014, 19:28 GMT
Last edited by Allan McRae (Allan) - Thursday, 28 May 2015, 04:43 GMT
|
Details
I use the "checkupdates" script provided with pacman in a
cron job to alert me of new updates.
As there's currently a problem with parcellite, I've had to downgrade, so I added it to pacman.conf as an IgnorePkg until the bug is resolved. `pacman -Syu` still works as expected, and reminds me that it isn't going to upgrade parcellite. `checkupdates` after a full upgrade, still says "parcellite" every time it runs. This seems to be because `pacman -Qu` doesn't look at IgnorePkg configuration. That may be intended behaviour, or it's at least running in the way that is documented (i.e. it doesn't mention --query): IgnorePkg = package ... Instructs pacman to ignore any upgrades for this package when performing a --sysupgrade. If that is the case, then I think the checkupdates script should filter out any packages that are set to be Ignored in pacman.conf |
This task depends upon
Closed by Allan McRae (Allan)
Thursday, 28 May 2015, 04:43 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in pacman-4.2 by c23ff87893d
Thursday, 28 May 2015, 04:43 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in pacman-4.2 by c23ff87893d
https://bugs.archlinux.org/task/15785
sed -i 's/pacman -Qqu/fakeroot pacman -Su --print/' /usr/bin/checkupdates
...I think? There's no updates right now so I can't test it :)
and also prints the url not the package name. doh!
It's messy - I don't like the pipe to grep, but that works
$ pacman -Qu
curl 7.37.0-1 -> 7.37.1-1 [ignored]
jre7-openjdk 7.u60_2.5.0-3 -> 7.u65_2.5.1-3
jre7-openjdk-headless 7.u60_2.5.0-3 -> 7.u65_2.5.1-3
So I guess checkupdates could filter using that.
I would prefer using -Sup to -Qu since it is more in-line with checkupdates's purpose.
https://bugs.archlinux.org/task/41228
Should it be considered a related task?