summaryrefslogtreecommitdiff
path: root/test/pacman/tests/query011.py
blob: f487fb29d23a983dfdece1bbaa4f34469c21e9bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
self.description = "Query info on a package (optdep install status [installed])"

optstr = "dep: for foobar"

pkg = pmpkg("dummy", "1.0-2")
pkg.optdepends = [optstr]
self.addpkg2db("local", pkg)

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

self.args = "-Qi %s" % pkg.name

self.addrule("PACMAN_RETCODE=0")
self.addrule("PACMAN_OUTPUT=^Optional Deps.*%s \[installed\]$" % optstr)