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#40306 - --S --print doesn't display any output when package is ignored

Attached to Project: Pacman
Opened by Remy Marquis (Spyhawk) - Sunday, 11 May 2014, 13:33 GMT
Last edited by Andrew Gregory (andrewgregory) - Thursday, 15 May 2014, 12:49 GMT
Task Type Bug Report
Category Backend/Core
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version 4.1.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info: "pacman -Sp package" displays the target URL by default and doesn't perform any operation. However, the output is empty when the package is ignored, either with the --ignore flag or when the package is added to the IgnorePkg directive in pacman.conf.


Steps to Reproduce:
- Check the output of "pacman -Sp linux" for example. The output should be similar to http://archlinux.puzzle.ch/core/os/x86_64/linux-3.14.2-1-x86_64.pkg.tar.xz
- Add the package "linux" to the IgnorePkg line in pacman.conf, or pass the command line option "--ignore linux" to pacman.
- See that the output of "pacman -Sp linux" is now empty.
This task depends upon

Closed by  Andrew Gregory (andrewgregory)
Thursday, 15 May 2014, 12:49 GMT
Reason for closing:  Not a bug
Comment by Allan McRae (Allan) - Sunday, 11 May 2014, 23:49 GMT
This seems correct to me. The package is ignored...
Comment by Remy Marquis (Spyhawk) - Monday, 12 May 2014, 12:08 GMT
Hmm, this really feels counter intuitive to me, as -p only prints information. The fact that the package is ignored doesn't change the value of the url or filename (%l), size (%s), name (%n), repo (%r) or version (%v) of that package (with --print-format). But maybe it is really the intended behavior?
Comment by Remy Marquis (Spyhawk) - Wednesday, 14 May 2014, 13:47 GMT
Some additional info: The behavior is inconsistent when the passed package is a provider package:

Real package name:
pacman -Sp expac --ignore expac
No output.

Provider package name:
pacman -Sp java-runtime --ignore java-runtime
Output displays URLs, despite being ignored.
Comment by Andrew Gregory (andrewgregory) - Wednesday, 14 May 2014, 16:26 GMT
I think you might misunderstand what --print does. It's not for querying information about specific packages. It displays the packages that pacman would (un)install if you ran the command for real. --ignore does not apply to provides, so ignoring java-runtime would not prevent the jre packages from being installed if you ran `pacman -S java-runtime`.
Comment by Remy Marquis (Spyhawk) - Thursday, 15 May 2014, 11:04 GMT
Yes, there's better tools to retrieve info anyway. And since --ignore doesn't seem to apply to providers, then I guess this report can be closed.

Loading...