Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/test/pacman/tests/sync303.py
blob: 9d7bab587a098984a7e840a2148be889fe97f7a6 (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
30
31
32
33
34
35
self.description = "Sysupgrade: upgrade pacman with deps as provisions"

sp = pmpkg("pacman", "1.0-2")
sp.depends = ["zlib"]
self.addpkg2db("sync", sp)

glibcdep = pmpkg("glibc", "2.13-1")
self.addpkg2db("sync", glibcdep)

zlibdep = pmpkg("zlib", "1.2.5-3")
zlibdep.depends = ["glibc"]
self.addpkg2db("sync", zlibdep)


lp = pmpkg("pacman", "1.0-1")
lp.depends = ["zlib"]
self.addpkg2db("local", lp)

lp2 = pmpkg("glibc-awesome", "2.13-2")
lp2.provides = ["glibc=2.13"]
lp2.conflicts = ["glibc"]
self.addpkg2db("local", lp2)

lp3 = pmpkg("zlib", "1.2.5-3")
self.addpkg2db("local", lp3)

self.option["SyncFirst"] = ["pacman"]

self.args = "-Su"

self.addrule("PACMAN_RETCODE=0")
self.addrule("PKG_VERSION=pacman|1.0-2")
self.addrule("PKG_EXIST=glibc-awesome")
self.addrule("PKG_VERSION=glibc-awesome|2.13-2")
self.addrule("PKG_EXIST=zlib")