Move important information up in -Si output
[pacman-ng.git] / test / pacman / tests / sync700.py
blob0002b643c96b0ac4d7628b5e8b5c16b365158f67
1 self.description = "do not remove directory symlink if another package has file in its path"
3 lp1 = pmpkg("pkg1")
4 lp1.files = ["usr/lib/foo",
5 "lib -> usr/lib"]
6 self.addpkg2db("local", lp1)
8 lp2 = pmpkg("pkg2")
9 lp2.files = ["lib/bar"]
10 self.addpkg2db("local", lp2)
12 p = pmpkg("pkg1", "1.0-2")
13 p.files = ["usr/lib/foo"]
14 self.addpkg2db("sync", p)
16 self.args = "-S pkg1"
18 self.addrule("PACMAN_RETCODE=1")
19 self.addrule("PKG_VERSION=pkg1|1.0-1")
20 self.addrule("FILE_EXIST=/lib/bar")
22 self.expectfailure = True