mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-15 13:55:09 -05:00
df0dac10e5
the check that pkg1 is modified and pkg2 does not exist is good enough for this use-case. Now we have a 100% pactest success
19 lines
380 B
Python
19 lines
380 B
Python
self.description = "System upgrade"
|
|
|
|
sp1 = pmpkg("pkg1", "1.0-2")
|
|
sp1.conflicts = ["pkg2"]
|
|
sp1.provides = ["pkg2"]
|
|
self.addpkg2db("sync", sp1);
|
|
|
|
sp2 = pmpkg("pkg2", "1.0-2")
|
|
self.addpkg2db("sync", sp2)
|
|
|
|
lp1 = pmpkg("pkg1")
|
|
self.addpkg2db("local", lp1)
|
|
|
|
self.args = "-S pkg1 pkg2"
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
self.addrule("PKG_MODIFIED=pkg1")
|
|
self.addrule("!PKG_EXIST=pkg2")
|