summaryrefslogtreecommitdiff
path: root/test/pacman/tests/sync143.py
blob: 37353a8494d91fcfbb5d24f0c4c9c9da51b5517f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
self.description = "Sysupgrade with same version, different epochs"

sp = pmpkg("dummy", "2.0-1")
sp.files = ["bin/dummynew"]
sp.epoch = 2
self.addpkg2db("sync", sp)

lp = pmpkg("dummy", "2.0-1")
lp.files = ["bin/dummyold"]
lp.force = 1
self.addpkg2db("local", lp)

self.args = "-Su"

self.addrule("PACMAN_RETCODE=0")
self.addrule("PKG_VERSION=dummy|2.0-1")
self.addrule("FILE_EXIST=bin/dummynew")
self.addrule("!FILE_EXIST=bin/dummyold")