summaryrefslogtreecommitdiff
path: root/test/pacman/tests/fileconflict013.py
blob: aacb730a3c662f5ea3a1a32a9264dbfe2599eca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
self.description = "file->file path change with same effective path (/lib as symlink)"
# Note: this situation means the filesystem and local db are out of sync

lp1 = pmpkg("filesystem", "1.0-1")
lp1.files = ["usr/",
             "usr/lib/",
             "lib -> usr/lib/"]
self.addpkg2db("local", lp1)

lp2 = pmpkg("pkg1", "1.0-1")
lp2.files = ["lib/libfoo.so"]
self.addpkg2db("local", lp2)

sp1 = pmpkg("pkg1", "1.0-2")
sp1.files = ["usr/lib/libfoo.so"]
self.addpkg2db("sync", sp1)

self.args = "-Su"

self.addrule("PACMAN_RETCODE=1")
self.addrule("PKG_VERSION=pkg1|1.0-1")