2007-12-02 18:56:48 -05:00
|
|
|
self.description = "Query info on a package"
|
|
|
|
|
|
|
|
p = pmpkg("foobar")
|
|
|
|
p.files = ["bin/foobar"]
|
2007-12-02 19:11:23 -05:00
|
|
|
p.desc = "test description"
|
|
|
|
p.groups = ["foo"]
|
|
|
|
p.url = "http://www.archlinux.org"
|
|
|
|
p.license = "GPL2"
|
|
|
|
p.arch = "i686"
|
2007-12-22 14:32:57 -05:00
|
|
|
# test old style date
|
2007-12-02 19:11:23 -05:00
|
|
|
p.builddate = "Mon Oct 1 01:40:21 2007 UTC"
|
|
|
|
p.packager = "Arch Linux"
|
|
|
|
|
2007-12-02 18:56:48 -05:00
|
|
|
self.addpkg2db("local", p)
|
|
|
|
|
|
|
|
self.args = "-Qi %s" % p.name
|
|
|
|
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
|
|
self.addrule("PACMAN_OUTPUT=%s" % p.name)
|
2007-12-02 19:11:23 -05:00
|
|
|
self.addrule("PACMAN_OUTPUT=%s" % p.desc)
|
2007-12-22 14:32:57 -05:00
|
|
|
self.addrule("PACMAN_OUTPUT=2007")
|