index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-05-31 02:51:28 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-05-31 02:51:28 -0400 |
commit | 7bd2ff685188d0d9b6ab6c6f43f6d28811936881 (patch) | |
tree | 30bbb96d2bbb8a6c63d9f7e7e6ac1c8b4b818148 /pactest | |
parent | 722db4535ae6690d8834ffebf3a0de3a880188f9 (diff) |
-rwxr-xr-x | pactest/pmtest.py | 9 | ||||
-rwxr-xr-x | pactest/util.py | 2 |
diff --git a/pactest/pmtest.py b/pactest/pmtest.py index 06b65bbb..dd524211 100755 --- a/pactest/pmtest.py +++ b/pactest/pmtest.py @@ -192,8 +192,13 @@ class pmtest: cmd.append("libtool gdb --args") if pacman["valgrind"]: cmd.append("valgrind --tool=memcheck --leak-check=full --show-reachable=yes") - cmd.append("%s --config=%s --root=%s" \ - % (pacman["bin"], os.path.join(self.root, PACCONF), self.root)) + cmd.append("%s --config=%s --root=%s --dbpath=%s --cachedir=%s --lock=%s" \ + % (pacman["bin"], + os.path.join(self.root, PACCONF), + self.root, + os.path.join(self.root, PM_DBPATH), + os.path.join(self.root, PM_CACHEDIR), + os.path.join(self.root, PM_LOCK) )) if not pacman["manual-confirm"]: cmd.append("--noconfirm") if pacman["debug"]: diff --git a/pactest/util.py b/pactest/util.py index 574a59be..98c22a5c 100755 --- a/pactest/util.py +++ b/pactest/util.py @@ -28,7 +28,7 @@ import stat PM_ROOT = "/" PM_DBPATH = "var/lib/pacman" PM_CACHEDIR = "var/cache/pacman/pkg" -PM_LOCK = "/tmp/pacman.lck" +PM_LOCK = "var/run/pacman.lck" PM_EXT_PKG = ".pkg.tar.gz" PM_EXT_DB = ".db.tar.gz" PM_PACNEW = ".pacnew" |