Add conflict for replacing owned empty directory
[pacman-ng.git] / test / pacman / tests / fileconflict009.py
blob904af4a37c58ca82ab0599b44f11ac352093e877
1 self.description = "dir->symlink change during package upgrade (directory conflict)"
3 lp1 = pmpkg("pkg1")
4 lp1.files = ["dir/"]
5 self.addpkg2db("local", lp1)
7 lp2 = pmpkg("pkg2")
8 lp2.files = ["dir/"]
9 self.addpkg2db("local", lp2)
11 p = pmpkg("pkg1", "1.0-2")
12 p.files = ["dir -> /usr/dir"]
13 self.addpkg2db("sync", p)
15 self.args = "-S pkg1"
17 self.addrule("PACMAN_RETCODE=1")
18 self.addrule("PKG_VERSION=pkg1|1.0-1")
19 self.addrule("PKG_VERSION=pkg2|1.0-1")
20 self.addrule("DIR_EXIST=dir/")