summaryrefslogtreecommitdiff
path: root/test/pacman/tests/clean005.py
blob: f85248efea7e2e35498eceb2296b802f124e28fe (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 = "CleanMethod = unspecified"

sp = pmpkg("dummy", "2.0-1")
self.addpkg2db("sync", sp)

sp = pmpkg("bar", "2.0-1")
self.addpkg2db("sync", sp)

sp = pmpkg("baz", "2.0-1")
self.addpkg2db("sync", sp)

lp = pmpkg("dummy", "1.0-1")
self.addpkg2db("local", lp)

lp = pmpkg("bar", "2.0-1")
self.addpkg2db("local", lp)

op = pmpkg("foo", "2.0-1")
self.addpkg(op)

self.args = "-Sc"
self.createlocalpkgs = True

self.addrule("PACMAN_RETCODE=0")
self.addrule("!CACHE_EXISTS=dummy|2.0-1")
self.addrule("CACHE_EXISTS=dummy|1.0-1")
self.addrule("CACHE_EXISTS=bar|2.0-1")
self.addrule("!CACHE_EXISTS=baz|2.0-1")
self.addrule("!CACHE_EXISTS=foo|2.0-1")