2007-11-16 16:37:57 -05:00
|
|
|
self.description = "provision>=1.0-2 dependency (3)"
|
|
|
|
|
|
|
|
p = pmpkg("pkg1", "1.0-2")
|
|
|
|
p.depends = ["provision>=1.0-2"]
|
2008-01-14 14:02:01 -05:00
|
|
|
self.addpkg2db("sync", p)
|
2007-11-16 16:37:57 -05:00
|
|
|
|
|
|
|
lp = pmpkg("pkg2", "1.0-2")
|
2008-01-14 14:28:29 -05:00
|
|
|
lp.provides = ["provision=1.0-1"]
|
2007-11-16 16:37:57 -05:00
|
|
|
self.addpkg2db("local", lp)
|
|
|
|
|
2008-01-14 14:02:01 -05:00
|
|
|
self.args = "-S %s" % p.name
|
2007-11-16 16:37:57 -05:00
|
|
|
|
2009-02-22 05:25:31 -05:00
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
2007-11-16 16:37:57 -05:00
|
|
|
self.addrule("!PKG_EXIST=pkg1")
|
|
|
|
self.addrule("PKG_EXIST=pkg2")
|