summaryrefslogtreecommitdiff
path: root/test/pacman/tests/fileconflict022.py
blob: 5ff0b5376ed83802cc15e8be6e80d9a7fb98f4cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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("!PKG_EXIST=foo")
self.addrule("!PKG_EXIST=bar")