Move important information up in -Si output
[pacman-ng.git] / test / pacman / tests / epoch005.py
blob621517036485094f30b5bb05ddcd08906e011f43
1 self.description = "Sysupgrade with sync packages having absurd epochs"
3 versions = (
4 "1234327518932650063289125782697890:1.0-1",
5 "1234327518932650063289125782697891:0.9-1",
6 "1234327518932650063289125782697891:1.0-1",
7 "1234327518932650063289125782697891:1.1-1",
8 "1234327518932650063289125782697892:1.0-1",
11 pkgvers = [(n, versions[n]) for n in range(len(versions))]
12 for k, v in pkgvers:
13 sp = pmpkg("pkg_%d" % k, v)
14 self.addpkg2db("sync", sp)
16 for k, v in pkgvers:
17 lp = pmpkg("pkg_%d" % k, versions[2])
18 self.addpkg2db("local", lp)
20 self.args = "-Su"
22 self.addrule("PACMAN_RETCODE=0")
23 for k, v in pkgvers:
24 right_ver = versions[max(k, 2)]
25 self.addrule("PKG_VERSION=pkg_%d|%s" % (k, right_ver))