mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-24 08:48:50 -05:00
9a24f1ffc5
Signed-off-by: Allan McRae <allan@archlinux.org>
13 lines
323 B
Python
13 lines
323 B
Python
self.description = "Query info on a package (optdep install status [uninstalled])"
|
|
|
|
optstr = "dep: for foobar"
|
|
|
|
pkg = pmpkg("dummy", "1.0-2")
|
|
pkg.optdepends = [optstr]
|
|
self.addpkg2db("local", pkg)
|
|
|
|
self.args = "-Qi %s" % pkg.name
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
self.addrule("PACMAN_OUTPUT=^Optional Deps.*%s$" % optstr)
|