summaryrefslogtreecommitdiff
path: root/pactest/tests/reason001.py
blob: 40433f5e91da8c779ea834b5ea93101da8e7f5c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
self.description = "Copy reason (to-be-replaced -> replacement)"

sp = pmpkg("libfoo-ng")
sp.replaces = [ "libfoo" ]
self.addpkg2db("sync", sp)

lp = pmpkg("libfoo")
lp.reason = 1
self.addpkg2db("local", lp)

self.args = "-Su"

self.addrule("PACMAN_RETCODE=0")
self.addrule("!PKG_EXIST=libfoo")
self.addrule("PKG_EXIST=libfoo-ng")
self.addrule("PKG_REASON=libfoo-ng|1")