Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#34351 - [pacman] The --print option does not print any line for an ignored package

Attached to Project: Pacman
Opened by Connor Behan (connorbehan) - Monday, 18 March 2013, 05:38 GMT
Last edited by Allan McRae (Allan) - Thursday, 09 May 2013, 23:35 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 4.1.0
Due in Version 4.2.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

 FS#34066  describes the effect this bug has on devtools. But the underlying bug is with pacman so this task is more appropriate.

Set IgnorePkg=foo and run pacman -Sp foo. Instead of seeing the URL for the package foo as stored on the highest priority mirror, you will see an empty string. This is a bug since documentation says --ignore will only take effect on a sysupgrade operation not a print.

Moreover, this behaviour is confusing since it is the opposite of what --noconfirm would do. The options --noconfirm and --print are both supposed to surpress questions. However the question "Foo is in IgnorePkg/IgnoreGrp install anyway?" defaults to "yes" with --noconfirm meaning that pacman will continue the operation and install the package. However, the same question defaults to "no" with --print meaning that pacman stops what it is doing and returns.

The reason for this in the code is fairly clear. The question_cb function returns without a value whenever config->print is TRUE, leaving the value at the mercy of libalpm. It should really return predictable default values similar to how config->noconfirm would.
This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 09 May 2013, 23:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  git commit ee3b70c4
Comment by KaiSforza (KaiSforza) - Monday, 18 March 2013, 06:18 GMT
nevermind me
Comment by Fabian Homborg (alfa) - Monday, 18 March 2013, 22:37 GMT
How about the following scheme:

--print _asks_ about ignored packages. (Edit: That would break "pacman -Sup > download.list")

If you wish to automatically print all ignored packages, use --noconfirm _with_ --print.

My reason for this is that you may use "pacman -Sup" to get the links to all packages for _the exact operation_ you want to do, so that you can download them on another system.

What you are asking seems to make that impossible (barring grepping out the ignored packages).
Comment by Connor Behan (connorbehan) - Thursday, 21 March 2013, 00:36 GMT
pacman -S foo asks the question "would you like to install foo?"
pacman -Su does not ask, it just says "skipping foo."

The patch I'm proposing would only change the API when a question is asked. So the behaviour of -Sp changes but -Sup does not.
Comment by Connor Behan (connorbehan) - Monday, 01 April 2013, 00:35 GMT
Unlike previous versions of the patch, no one commented on this one when I sent it to the mailing list. Sticking it here until people have time.

Loading...