2007-06-26 12:00:22 -04:00
|
|
|
self.description = "Sysupgrade : pacman needs to be upgraded and has new deps"
|
|
|
|
|
|
|
|
sp = pmpkg("pacman", "1.0-2")
|
|
|
|
sp.depends = ["dep"]
|
|
|
|
self.addpkg2db("sync", sp)
|
|
|
|
|
|
|
|
spdep = pmpkg("dep")
|
|
|
|
self.addpkg2db("sync", spdep)
|
|
|
|
|
|
|
|
sp1 = pmpkg("pkg1", "1.0-2")
|
|
|
|
self.addpkg2db("sync", sp1)
|
|
|
|
|
|
|
|
lp = pmpkg("pacman", "1.0-1")
|
|
|
|
self.addpkg2db("local", lp)
|
|
|
|
|
|
|
|
lp1 = pmpkg("pkg1", "1.0-1")
|
|
|
|
self.addpkg2db("local", lp1)
|
|
|
|
|
2008-01-28 13:49:27 -05:00
|
|
|
self.option["SyncFirst"] = ["pacman"]
|
|
|
|
|
2007-06-26 12:00:22 -04:00
|
|
|
self.args = "-Su"
|
|
|
|
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
|
|
self.addrule("PKG_EXIST=pacman")
|
|
|
|
self.addrule("PKG_VERSION=pacman|1.0-2")
|
2008-01-28 13:49:27 -05:00
|
|
|
self.addrule("PKG_VERSION=pkg1|1.0-1")
|
2007-06-26 12:00:22 -04:00
|
|
|
self.addrule("PKG_EXIST=dep")
|