Move important information up in -Si output
[pacman-ng.git] / test / pacman / tests / upgrade061.py
blob310e50437893790c8d2f73640d5702a96fbde24e
1 self.description = "Try to upgrade two packages which would break deps"
3 lp1 = pmpkg("pkg1", "1.0-1")
4 lp1.depends = ["imaginary"]
5 self.addpkg2db("local", lp1)
7 lp2 = pmpkg("pkg2", "1.0-1")
8 lp2.provides = ["imaginary"]
9 self.addpkg2db("local", lp2)
11 p1 = pmpkg("pkg1", "1.0-2")
12 p1.depends = ["imaginary"]
13 self.addpkg(p1)
15 p2 = pmpkg("pkg2", "1.0-2")
16 self.addpkg(p2)
18 self.args = "-U %s" % " ".join([p.filename() for p in p1, p2])
20 self.addrule("PACMAN_RETCODE=1")
21 self.addrule("PKG_VERSION=pkg1|1.0-1")
22 self.addrule("PKG_VERSION=pkg2|1.0-1")