Move important information up in -Si output
[pacman-ng.git] / test / pacman / tests / database010.py
blob662dc1b62400ab266b7d9a19324eabe094ec61d1
1 # TODO: these are labeled as database packages because they sure seem to me to
2 # be database-type operations. In their current implementation however they are
3 # calling -U and -R rather than -D. Obviously the tests will need to be updated
4 # if this changes.
5 self.description = "Remove a package with --dbonly, no files touched"
7 p = pmpkg("dummy")
8 p.files = ["bin/dummy",
9 "usr/man/man1/dummy.1"]
10 self.addpkg2db("local", p)
12 self.args = "-R --dbonly %s" % p.name
14 self.addrule("PACMAN_RETCODE=0")
15 self.addrule("!PKG_EXIST=dummy")
16 for f in p.files:
17 self.addrule("FILE_EXIST=%s" % f)