Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/test/pacman/tests/dbonly-extracted-files.py
blob: a1bc48df9831ab9c1f5f0f2415bc239be515acf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import util
import os.path

self.description = "Install a package with dbonly"

sp = pmpkg("foobar", "1-1")
sp.files = ["bin/foobar"]
sp.install['post_install'] = "echo foobar"
self.addpkg2db("sync", sp)

self.args = "-S --dbonly %s" % sp.name

self.addrule("PACMAN_RETCODE=0")
self.addrule("PKG_EXIST=foobar")
self.addrule("FILE_EXIST=%s" % os.path.join(util.PM_DBPATH, "local/foobar-1-1/install"))
self.addrule("!FILE_EXIST=bin/foobar")