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

Allan McRae allan at archlinux.org
Thu Sep 14 06:20:58 UTC 2017

On 14/09/17 16:16, Vladimir Panteleev wrote:
> 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?

@Andrew - can you help out here?  You know the internals of the testing
system better than I do...

More information about the pacman-dev mailing list