Welcome to the Pacman bug tracker. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".

* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.

FS#62817 - Behaviour of pacman -Fo for directories

Attached to Project: Pacman
Opened by Jagannathan Tiruvallur Eachambadi (j605) - Wednesday, 05 June 2019, 18:25 GMT
Task Type Bug Report
Category General
Status Unconfirmed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 5.1.3
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


Summary and Info:

Currently -Fo does not show package ownership if directories are not specified with a trailing slash. But one would expect it to show packages owning the directory regardless of an implementation detail. It would be great to support directories without the need of using a trailing slash or document the behaviour in the man page.

Steps to Reproduce: (Example)
$ pacman -Fo /usr/include/pulse
shows nothing
$ pacman -Fo /usr/include/pulse/
usr/include/pulse/ is owned by extra/libpulse 12.2-2
This task depends upon

Comment by Matthew Sexton (wsdmatty) - Tuesday, 27 August 2019, 13:03 GMT
Syntactically, /usr/include/pulse refers to a file named "pulse" in /usr/include/ while usr/include/pulse/ refers to a directory pulse/ in /usr/include/.

Altering this behavior would actually require changing how pacman searches for files and including an assumed "filename/" to every search for "filename".