mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-11 13:59:02 -05:00
d68635e7c2
I managed to just make deptest001.py fail by changing a DEBUG-level
logger in commit b12be99c89
. This should not be this fickle. Enhance the
OUTPUT rule to use an actual Python re object when looking for matches,
and make a lot of the rules use stronger patterns to match with.
Signed-off-by: Dan McGee <dan@archlinux.org>
11 lines
217 B
Python
11 lines
217 B
Python
self.description = "Query a package"
|
|
|
|
p = pmpkg("foobar")
|
|
p.files = ["bin/foobar"]
|
|
self.addpkg2db("local", p)
|
|
|
|
self.args = "-Q %s" % p.name
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
self.addrule("PACMAN_OUTPUT=^%s" % p.name)
|