Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/test/pacman/tests/provision004.py
blob: 696fa79fd752cbbfe6b5f0f4177fbef2f4cd0f7e (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 literal with provision of same name installed"

sp = pmpkg("provision", "1.0-2")
sp.provides = ["literal"]
sp.conflicts = ["literal"]
self.addpkg2db("sync", sp)

sp = pmpkg("literal", "1.0-2")
self.addpkg2db("sync2", sp)

lp = pmpkg("provision")
lp.provides = ["literal"]
lp.conflicts = ["literal"]
self.addpkg2db("local", lp)

self.args = "-S literal --ask=4"

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