2007-02-23 01:50:42 -05:00
|
|
|
self.description = "Install a sync package conflicting with two local ones"
|
2006-10-15 15:04:27 -04:00
|
|
|
|
|
|
|
sp = pmpkg("pkg1")
|
2007-02-23 01:50:42 -05:00
|
|
|
sp.conflicts = ["pkg2", "pkg3"]
|
2006-10-15 15:04:27 -04:00
|
|
|
self.addpkg2db("sync", sp);
|
|
|
|
|
2007-02-23 01:50:42 -05:00
|
|
|
lp1 = pmpkg("pkg2")
|
|
|
|
self.addpkg2db("local", lp1);
|
2006-10-15 15:04:27 -04:00
|
|
|
|
2009-08-31 17:54:51 -04:00
|
|
|
lp2 = pmpkg("pkg3")
|
|
|
|
self.addpkg2db("local", lp2);
|
2007-02-23 01:50:42 -05:00
|
|
|
|
2009-08-31 17:54:51 -04:00
|
|
|
self.args = "-S %s --ask=4" % sp.name
|
2006-10-15 15:04:27 -04:00
|
|
|
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
|
|
self.addrule("PKG_EXIST=pkg1")
|
|
|
|
self.addrule("!PKG_EXIST=pkg2")
|
2007-02-23 01:50:42 -05:00
|
|
|
self.addrule("!PKG_EXIST=pkg3")
|