summaryrefslogtreecommitdiff
path: root/test/pacman/tests/fileconflict022.py
blob: 5759d4c3d8330dd9d2a465ff5cbeb17a777e8dd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
self.description = "File conflict between package with symlink and package with real path"

self.filesystem = ["usr/lib/", "lib -> usr/lib/"]

sp1 = pmpkg("foo")
# share/ causes the entries to be reordered after path resolution
sp1.files = ["lib/", "lib/file", "share/"]
self.addpkg2db("sync", sp1)

sp2 = pmpkg("bar")
sp2.files = ["usr/", "usr/lib/", "usr/lib/file"]
self.addpkg2db("sync", sp2)

self.args = "-S %s %s" % (sp1.name, sp2.name)

self.addrule("PACMAN_RETCODE=1")
self.addrule("PACMAN_OUTPUT=.*/usr/lib/file exists in both 'foo' and 'bar'")
self.addrule("!PKG_EXIST=foo")
self.addrule("!PKG_EXIST=bar")