index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | test/pacman/tests/fileconflict025.py | 20 |
diff --git a/test/pacman/tests/fileconflict025.py b/test/pacman/tests/fileconflict025.py new file mode 100644 index 00000000..efd027e1 --- /dev/null +++ b/test/pacman/tests/fileconflict025.py @@ -0,0 +1,20 @@ +self.description = "File conflict between package with symlink and package with real path resolved by removal (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=0") +self.addrule("!PKG_EXIST=foo") +self.addrule("PKG_EXIST=bar") + +self.expectfailure = True |