summaryrefslogtreecommitdiff
path: root/test/pacman/tests/fileconflict007.py
blob: 7fe65ed4a90161c6d455d8c0c6dc1c827d4fd823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
self.description = "Fileconflict with symlinks (klibc case)"

lp = pmpkg("pkg")
lp.files = ["dir/realdir/",
            "dir/symdir -> realdir",
            "dir/realdir/file"]
self.addpkg2db("local", lp)

p = pmpkg("pkg", "1.0-2")
p.files = ["dir/symdir/file"]
self.addpkg(p)

self.args = "-U %s" % p.filename()

self.addrule("PACMAN_RETCODE=0")
self.addrule("PKG_EXIST=pkg")
self.addrule("PKG_VERSION=pkg|1.0-2")
self.addrule("FILE_TYPE=dir/symdir/|dir")