1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-21 23:38:49 -05:00

pactest: use pacman --hookdir option

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Andrew Gregory 2015-10-16 20:28:28 -04:00 committed by Allan McRae
parent 7000bf9198
commit 60ebee7a6e
2 changed files with 5 additions and 0 deletions

View File

@ -43,6 +43,7 @@ class pmtest(object):
"--config", self.configfile(),
"--root", self.rootdir(),
"--dbpath", self.dbdir(),
"--hookdir", self.hookdir(),
"--cachedir", self.cachedir()]
def __str__(self):
@ -306,4 +307,7 @@ class pmtest(object):
def cachedir(self):
return os.path.join(self.root, util.PM_CACHEDIR)
def hookdir(self):
return os.path.join(self.root, util.PM_HOOKDIR)
# vim: set ts=4 sw=4 et:

View File

@ -30,6 +30,7 @@ PM_SYNCDBPATH = "var/lib/pacman/sync"
PM_LOCK = "var/lib/pacman/db.lck"
PM_CACHEDIR = "var/cache/pacman/pkg"
PM_EXT_PKG = ".pkg.tar.gz"
PM_HOOKDIR = "etc/pacman.d/hooks"
# Pacman
PACCONF = "etc/pacman.conf"