1 self
.description
= "Install package with dep that conflicts with older version of package"
3 sp1
= pmpkg("pkg1", "1.0-2")
4 sp1
.depends
= ["pkg2=1.0-2"]
5 self
.addpkg2db("sync", sp1
)
7 sp2
= pmpkg("pkg2", "1.0-2")
8 sp2
.conflicts
= [ "pkg1=1.0-1" ]
9 self
.addpkg2db("sync", sp2
)
11 lp1
= pmpkg("pkg1", "1.0-1")
12 lp1
.depends
= ["pkg2=1.0-1"]
13 self
.addpkg2db("local", lp1
)
15 lp2
= pmpkg("pkg2", "1.0-1")
16 self
.addpkg2db("local", lp2
)
20 self
.addrule("PACMAN_RETCODE=0")
21 self
.addrule("PKG_EXIST=pkg1")
22 self
.addrule("PKG_VERSION=pkg1|1.0-2")
23 self
.addrule("PKG_EXIST=pkg2")
24 self
.addrule("PKG_VERSION=pkg2|1.0-2")