summaryrefslogtreecommitdiff
path: root/test/pacman/tests/symlink010.py
blob: a1e562e1e7c406d371b8bcd309f5eb2cc0bc9501 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
self.description = "Unowned identical symlink pointing to file in package"

lp = pmpkg("dummy")
lp.files = ["usr/bin/myprog"]
self.addpkg2db("local", lp)

self.filesystem = ["usr/bin/otherprog",
                   "usr/bin/myprogsuffix -> myprog"]

p = pmpkg("dummy", "1.0-2")
p.files = ["usr/bin/myprog",
           "usr/bin/myprogsuffix -> myprog"]
self.addpkg(p)

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

self.addrule("PACMAN_RETCODE=1")
self.addrule("PKG_VERSION=dummy|1.0-1")
self.addrule("FILE_EXIST=usr/bin/myprog")
self.addrule("LINK_EXIST=usr/bin/myprogsuffix")
self.addrule("FILE_EXIST=usr/bin/otherprog")
self.addrule("FILE_TYPE=usr/bin/myprog|file")
self.addrule("FILE_TYPE=usr/bin/myprogsuffix|link")
self.addrule("FILE_TYPE=usr/bin/otherprog|file")