Move important information up in -Si output
[pacman-ng.git] / test / pacman / tests / upgrade090.py
blob26e531c94eeeb51a0fa8ed4e0b84093e7156bb46
1 self.description = "-U syncdeps test"
3 p1 = pmpkg("pkg1", "1.0-2")
4 p1.files = ["bin/pkg1"]
6 p2 = pmpkg("pkg2", "1.0-2")
7 p2.depends = ["dep"]
9 p3 = pmpkg("pkg3", "1.0-2")
10 p3.depends = ["unres"]
12 for p in p1, p2, p3:
13 self.addpkg(p)
15 sp = pmpkg("dep")
16 sp.files = ["bin/dep"]
17 self.addpkg2db("sync", sp)
19 self.args = "-U %s --ask=32" % " ".join([p.filename() for p in p1, p2, p3])
21 self.addrule("PACMAN_RETCODE=0")
22 for p in p1, p2, sp:
23 self.addrule("PKG_EXIST=%s" % p.name)
24 for f in p.files:
25 self.addrule("FILE_EXIST=%s" % f)
26 self.addrule("PKG_VERSION=pkg1|1.0-2")
27 self.addrule("PKG_VERSION=pkg2|1.0-2")
28 self.addrule("!PKG_EXIST=pkg3")