1 self
.description
= "System upgrade"
3 sp1
= pmpkg("pkg1", "1.0-2")
4 sp1
.conflicts
= ["pkg2"]
5 sp1
.provides
= ["pkg2"]
6 self
.addpkg2db("sync", sp1
);
8 sp2
= pmpkg("pkg2", "1.0-2")
9 self
.addpkg2db("sync", sp2
)
12 self
.addpkg2db("local", lp1
)
15 self
.addpkg2db("local", lp2
)
17 self
.args
= "-Su --ask=4"
19 self
.addrule("PACMAN_RETCODE=0")
20 self
.addrule("PKG_EXIST=pkg1")
21 self
.addrule("!PKG_EXIST=pkg2")