mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-17 14:55:07 -05:00
5c1885b55e
These should all prevent installation, and yet two of the three tests currently fail. Not good. The best way to see what is going on here is to diff the three new tests side by side- there is only a small difference between the three tests, and that is in the destination of the symlink in question that should never be overwritten. symlink010.py: myprogsuffix -> myprog symlink011.py: myprogsuffix -> broken symlink012.py: myprogsuffix -> otherprog Signed-off-by: Dan McGee <dan@archlinux.org>
18 lines
415 B
Python
18 lines
415 B
Python
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")
|