summaryrefslogtreecommitdiff
path: root/test/pacman/tests/sync023.py
blob: 8233ab7341d2f217e0095e8f215fb93f53a19377 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
self.description = "Install a group from a sync db using --needed (testing repo)"

lp1 = pmpkg("pkg1", "1.1-1")
lp2 = pmpkg("pkg2")
lp3 = pmpkg("pkg3")

sp1 = pmpkg("pkg1")
sp2 = pmpkg("pkg2")
sp3 = pmpkg("pkg3")
newp1 = pmpkg("pkg1", "1.1-1")

for p in lp1, lp2, lp3, sp1, sp2, sp3, newp1:
        setattr(p, "groups", ["grp"])

for p in lp1, lp2, lp3:
        self.addpkg2db("local", p)

self.addpkg2db("testing", newp1);

for p in sp1, sp2, sp3:
        self.addpkg2db("sync", p);

self.args = "-S --needed grp"

self.addrule("PACMAN_RETCODE=0")
for p in sp1, sp2, sp3:
        self.addrule("PKG_EXIST=%s" % p.name)
# The newer version should still be installed
self.addrule("PKG_VERSION=pkg1|1.1-1")