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

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

sp = pmpkg("pkg2", "1.0-2")
sp.provides = ["pkg-env"]
self.addpkg2db("sync", 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")