summaryrefslogtreecommitdiffstats
path: root/test/pacman/tests/sync304.py
blob: 18058c99ca336202805b9a5a2281753e5400d84c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
self.description = "Sysupgrade: upgrade pacman being depended on"

sp = pmpkg("pacman", "4.0.1-1")
self.addpkg2db("sync", sp)

sp2 = pmpkg("pyalpm", "2-1")
sp2.depends = ["pacman>=4.0", "pacman<4.1"]
self.addpkg2db("sync", sp2)

lp = pmpkg("pacman", "3.5.4-1")
self.addpkg2db("local", lp)

lp2 = pmpkg("pyalpm", "1-1")
lp2.depends = ["pacman>=3.5", "pacman<3.6"]
self.addpkg2db("local", lp2)

self.option["SyncFirst"] = ["pacman"]

self.args = "-Su"

self.addrule("PACMAN_RETCODE=0")
self.addrule("PKG_VERSION=pacman|4.0.1-1")
self.addrule("PKG_VERSION=pyalpm|2-1")

self.expectfailure = True