Check empty subdirectory ownership
commit44e9fdd0e848382337edb97d41e7317638a67bac
authorAllan McRae <allan@archlinux.org>
Sun, 8 Jul 2012 13:58:37 +0000 (8 23:58 +1000)
committerDan McGee <dan@archlinux.org>
Tue, 10 Jul 2012 13:31:48 +0000 (10 08:31 -0500)
treecfe064ec834c3d03cbe2a5f39b61f42231a480f6
parent717fdb8ee0fd23cf72fc7d2832317f513caefa2c
Check empty subdirectory ownership

When checking if a package owns a directory, it is important to check
not only that all the files in the directory are part of the package,
but also if the directory is part of a package.  This catches empty
subdirectories during conflict checking for directory to file/symlink
replacements.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/conflict.c
test/pacman/tests/fileconflict012.py [new file with mode: 0644]