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
5 self
.description
= "Upgrade a package with --dbonly, no files touched"
8 lp
.files
= ["bin/dummy",
9 "usr/man/man1/dummy.1"]
10 self
.addpkg2db("local", lp
)
12 p
= pmpkg("dummy", "2.0-1")
13 p
.files
= ["bin/dummy",
15 "usr/man/man1/dummy.1"]
18 self
.args
= "-U --dbonly %s" % p
.filename()
20 self
.addrule("PACMAN_RETCODE=0")
21 self
.addrule("PKG_EXIST=dummy")
22 self
.addrule("PKG_VERSION=dummy|2.0-1")
24 self
.addrule("FILE_EXIST=%s" % f
)
25 self
.addrule("!FILE_EXIST=bin/dummy2")