FS#48563 - [pacman] `--root -Qkk` prepends root twice, always fails to find 'install' files

Attached to Project: Pacman
Opened by ... (spider007) - Sunday, 13 March 2016, 12:12 GMT
Last edited by Allan McRae (Allan) - Tuesday, 29 March 2016, 04:22 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 5.0.1
Due in Version 5.0.2
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When using pacman -Qkk with an alternative root directory, somehow it reports errors for all /install files, which seems to be caused by it prepending the root twice:

# pacman -r /var/lib/machines/arch -Qkk >/dev/null
warning: bash: /var/lib/machines/arch/var/lib/machines/arch/var/lib/pacman/local/bash-4.3.042-4/install (No such file or directory)
...

Pacman prints this warning for every installed package. It seems to find all other files so this is only happening for the install file (which does exist at /var/lib/machines/arch/var/lib/pacman/local/bash-4.3.042-4/install)
This task depends upon

Closed by  Allan McRae (Allan)
Tuesday, 29 March 2016, 04:22 GMT
Reason for closing:  Fixed
Additional comments about closing:  git commit 2ee1706a

Loading...