summaryrefslogtreecommitdiff
path: root/test/pacman/tests/remove-optdepend-of-installed-package.py
blob: 4973df5f3136b4e8a367994dd9d15eafc67fc160 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
self.description = "Remove packages which is an optdepend of another package"

p1 = pmpkg("dep")
self.addpkg2db("local", p1)

p2 = pmpkg("pkg")
p2.optdepends = ["dep: for foobar"]
self.addpkg2db("local", p2)

self.args = "-R %s" % p1.name

self.addrule("PACMAN_RETCODE=0")
self.addrule("!PKG_EXIST=%s" % p1.name)
self.addrule("PKG_EXIST=%s" % p2.name)
self.addrule("PACMAN_OUTPUT=%s optionally requires %s" % (p2.name, p1.name))