--- test/pacman/pmtest.py | 4 ++++ test/pacman/util.py | 1 + 2 files changed, 5 insertions(+) diff --git a/test/pacman/pmtest.py b/test/pacman/pmtest.py index c7bda9c..d48c03f 100644 --- a/test/pacman/pmtest.py +++ b/test/pacman/pmtest.py @@ -43,6 +43,7 @@ def __init__(self, name, root): "--config", self.configfile(), "--root", self.rootdir(), "--dbpath", self.dbdir(), + "--hookdir", self.hookdir(), "--cachedir", self.cachedir()] def __str__(self): @@ -306,4 +307,7 @@ def rootdir(self): 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: diff --git a/test/pacman/util.py b/test/pacman/util.py index 2e643cc..aa9c63f 100644 --- a/test/pacman/util.py +++ b/test/pacman/util.py @@ -30,6 +30,7 @@ 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" -- 2.6.1