From 7e9ad22ac21329adcf470bb00f2d0a386376fddf Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Tue, 16 Jul 2013 21:34:54 +1000 Subject: Add version file when creating local database directory The version of the local pacman database is stored in its root in the file ALPM_DB_VERSION. The version is starting at 9, corresponding to the next libalpm library version. Signed-off-by: Allan McRae --- test/pacman/pmdb.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/pacman') diff --git a/test/pacman/pmdb.py b/test/pacman/pmdb.py index a6cf78fc..60e0e9cc 100644 --- a/test/pacman/pmdb.py +++ b/test/pacman/pmdb.py @@ -87,6 +87,8 @@ class pmdb(object): if self.read_dircache is None: self.read_dircache = os.listdir(self.dbdir) for entry in self.read_dircache: + if entry == "ALPM_DB_VERSION": + continue [pkgname, pkgver, pkgrel] = entry.rsplit("-", 2) if pkgname == name: dbentry = entry -- cgit v1.2.3