summaryrefslogtreecommitdiff
path: root/pactest/tests/sync022.py
blob: 81d52ff6dbab0c0a8ee013ba4c113406fab705e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
self.description = "Install group with two conflicting packages, one replacing other"

sp1 = pmpkg("pkg1")
sp1.groups = ["grp"]
self.addpkg2db("sync", sp1);

sp2 = pmpkg("pkg2")
sp2.groups = ["grp"]
sp2.provides = ["pkg1"]
sp2.conflicts = ["pkg1"]
sp2.replaces = ["pkg1"]
self.addpkg2db("sync", sp2);

lp1 = pmpkg("pkg2")
lp1.groups = ["grp"]
self.addpkg2db("local", lp1);

self.args = "-S %s" % "grp"

self.addrule("PACMAN_RETCODE=0")
self.addrule("PKG_EXIST=pkg2");
self.addrule("!PKG_EXIST=pkg1");