1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 07:48:50 -05:00

pactest: conflict between directory and a file

Note failure to detect a conflict between a directory in one package
and a file in the other when the directory is not currently on the
filesystem.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2012-07-17 01:15:53 +10:00 committed by Dan McGee
parent e3772f7654
commit 6f47dfc920

View File

@ -0,0 +1,17 @@
self.description = "conflict between a directory and a file"
p1 = pmpkg("pkg1")
p1.files = ["foo/"]
self.addpkg2db("sync", p1)
p2 = pmpkg("pkg2")
p2.files = ["foo"]
self.addpkg2db("sync", p2)
self.args = "-S pkg1 pkg2"
self.addrule("PACMAN_RETCODE=1")
self.addrule("!PKG_EXIST=pkg1")
self.addrule("!PKG_EXIST=pkg2")
self.expectfailure = True