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
|
|
|
|
2007-02-23 01:50:42 -05:00
|
|
|
lp1 = pmpkg("pkg3")
|
|
|
|
self.addpkg2db("local", lp1);
|
|
|
|
|
|
|
|
self.args = "-S %s" % 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")
|