summaryrefslogtreecommitdiff
path: root/test/pacman/tests/provision003.py
blob: 086475019ea3479facad9252db79b07ae82d3b2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
self.description = "-S provision, multiple providers, one installed, different repos"

sp = pmpkg("pkg1", "1.0-2")
sp.provides = ["pkg-env"]
self.addpkg2db("sync", sp)

sp = pmpkg("pkg2", "1.0-2")
sp.provides = ["pkg-env"]
# this repo will be sorted second alphabetically
self.addpkg2db("sync2", sp)

lp = pmpkg("pkg2")
lp.provides = ["pkg-env"]
self.addpkg2db("local", lp)

self.args = "-S pkg-env"

self.addrule("PACMAN_RETCODE=0")
self.addrule("!PKG_EXIST=pkg1")
self.addrule("PKG_EXIST=pkg2")
self.addrule("PKG_VERSION=pkg2|1.0-2")