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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
self.description = "-U --recursive upgrades outdated dependencies"
# git (new package)
# |-- perl (up to date)
# |-- glibc (out of date, will be updated)
# |-- curl (out of date, will be updated)
# |-- expat (up to date)
perl_lpkg = pmpkg("perl", "5.14.1-3")
perl_lpkg.depends = ["glibc"]
self.addpkg2db("local", perl_lpkg)
glibc_lpkg = pmpkg("glibc", "2.1.3-1")
self.addpkg2db("local", glibc_lpkg)
curl_lpkg = pmpkg("curl", "7.20-1")
self.addpkg2db("local", curl_lpkg)
expat_lpkg = pmpkg("expat", "2.0.1-6")
self.addpkg2db("local", expat_lpkg)
# Sync db
perl_sync = pmpkg("perl", "5.14.1-3")
perl_sync.depends = ["glibc"]
self.addpkg2db("sync", perl_sync)
glibc_sync = pmpkg("glibc", "2.1.4-4")
self.addpkg2db("sync", glibc_sync)
curl_sync = pmpkg("curl", "7.21.7-1")
self.addpkg2db("sync", curl_sync)
expat_sync = pmpkg("expat", "2.0.1-6")
self.addpkg2db("sync", expat_sync)
p = pmpkg("git", "1.7.6-1")
p.depends = ["curl", "expat", "perl"]
self.addpkg(p)
self.args = "-U --recursive %s" % p.filename()
self.addrule("PACMAN_RETCODE=0")
self.addrule("PKG_DEPENDS=git|curl")
self.addrule("PKG_DEPENDS=git|expat")
self.addrule("PKG_DEPENDS=git|perl")
self.addrule("PKG_DEPENDS=perl|glibc")
self.addrule("PKG_EXIST=git")
self.addrule("PKG_VERSION=git|1.7.6-1")
self.addrule("PKG_VERSION=curl|7.21.7-1")
self.addrule("PKG_VERSION=glibc|2.1.4-4")
self.addrule("PKG_VERSION=perl|5.14.1-3")
self.addrule("PKG_VERSION=expat|2.0.1-6")
# --recursive operation was removed for now
self.expectfailure = True
|