[pacman-dev] [PATCH] Allow query of file owners to work with non-existing files

Vladimir Panteleev archlinux at thecybershadow.net
Thu Sep 14 06:16:44 UTC 2017


On 2017-09-14 04:21, Allan McRae wrote:
> This test passes before and after your patch...   And the etc/config
> file is installed into the test root, so you are not testing a -Qo on a
> missing file.

You're right, thanks.

What would be a good way to test this? I don't think there's a way to do 
it with the existing pmtest/pmpkg methods. I figured adding a "deleted" 
flag to getfileinfo would be one way, however filesystem entries are 
processed before package entries, and though I did get things to work 
with `sp.files = ["etc/foo", "etc/config", "etc/config-"]` (i.e. create 
the file and then delete it during the simulated package installation), 
that's probably too clever.

Should there be a pmtest.filesystem_delete to complement pmtest.filesystem?

-- 
Best regards,
  Vladimir


More information about the pacman-dev mailing list