summaryrefslogtreecommitdiffstats
path: root/test/pacman/tests/deprange001.py
blob: e6d3e3b290fb98e6f1ed37f3a4aed541fb0463ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
self.description = "dependency ranges should be satisfied by the same package"

lp1 = pmpkg("pkg1")
lp1.provides = ["dependency=2"]
self.addpkg2db("local", lp1)

lp2 = pmpkg("pkg2")
lp2.provides = ["dependency=5"]
self.addpkg2db("local", lp2)

p = pmpkg("pkg3")
p.depends = ["dependency>=3", "dependency<=4"]
self.addpkg(p)

self.args = "-U %s" % p.filename()
self.addrule("PACMAN_RETCODE=1")
self.addrule("!PKG_EXIST=pkg3")

self.expectfailure = True