summaryrefslogtreecommitdiffstats
path: root/pactest/tests/database010.py
blob: 662dc1b62400ab266b7d9a19324eabe094ec61d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# TODO: these are labeled as database packages because they sure seem to me to
# be database-type operations. In their current implementation however they are
# calling -U and -R rather than -D. Obviously the tests will need to be updated
# if this changes.
self.description = "Remove a package with --dbonly, no files touched"

p = pmpkg("dummy")
p.files = ["bin/dummy",
            "usr/man/man1/dummy.1"]
self.addpkg2db("local", p)

self.args = "-R --dbonly %s" % p.name

self.addrule("PACMAN_RETCODE=0")
self.addrule("!PKG_EXIST=dummy")
for f in p.files:
	self.addrule("FILE_EXIST=%s" % f)