mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
18 lines
365 B
Python
18 lines
365 B
Python
|
self.description = "Upgrade with a replacement in a repo with lower prioriy"
|
||
|
|
||
|
sp1 = pmpkg("pkg2")
|
||
|
self.addpkg2db("sync1", sp1)
|
||
|
|
||
|
sp2 = pmpkg("pkg1")
|
||
|
sp2.replaces = ["pkg2"]
|
||
|
self.addpkg2db("sync2", sp2)
|
||
|
|
||
|
lp = pmpkg("pkg2")
|
||
|
self.addpkg2db("local", lp)
|
||
|
|
||
|
self.args = "-Su"
|
||
|
|
||
|
self.addrule("PACMAN_RETCODE=0")
|
||
|
self.addrule("!PKG_EXIST=pkg1")
|
||
|
self.addrule("PKG_EXIST=pkg2")
|