2007-11-29 12:56:50 -05:00
|
|
|
self.description = "Conflicting package names in sync repos"
|
|
|
|
|
2008-03-11 11:40:27 -04:00
|
|
|
sp1 = pmpkg("cpkg", "1.0-1")
|
2007-11-29 12:56:50 -05:00
|
|
|
sp1.provides = [ "provision1" ]
|
|
|
|
self.addpkg2db("sync1", sp1)
|
|
|
|
|
2008-03-11 11:40:27 -04:00
|
|
|
sp2 = pmpkg("cpkg", "2.0-1")
|
2007-11-29 12:56:50 -05:00
|
|
|
sp2.provides = [ "provision2" ]
|
|
|
|
self.addpkg2db("sync2", sp2)
|
|
|
|
|
2008-03-11 11:40:27 -04:00
|
|
|
sp3 = pmpkg("pkg")
|
|
|
|
sp3.depends = [ "provision1" , "provision2" ]
|
|
|
|
self.addpkg2db("sync1", sp3)
|
|
|
|
|
|
|
|
self.args = "-S pkg"
|
2007-11-29 12:56:50 -05:00
|
|
|
|
|
|
|
self.addrule("PACMAN_RETCODE=1")
|
|
|
|
self.addrule("!PKG_EXIST=pkg")
|
2008-03-11 11:40:27 -04:00
|
|
|
self.addrule("!PKG_EXIST=cpkg")
|