summaryrefslogtreecommitdiff
path: root/test/pacman/tests/fileconflict025.py
blob: 263c81d468a2f64f58027eea268be3606dc8cf37 (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 and filesystem (reversed)"

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

lp1 = pmpkg("foo")
lp1.files = ["usr/", "usr/lib/", "usr/lib/file"]
self.addpkg2db("local", lp1)

sp1 = pmpkg("bar")
sp1.conflicts = ["foo"]
sp1.files = ["lib/", "lib/file"]
self.addpkg2db("sync", sp1)

self.args = "-S %s --ask=4" % sp1.name

self.addrule("PACMAN_RETCODE=1")
self.addrule("PKG_EXIST=foo")
self.addrule("!PKG_EXIST=bar")