summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-07-16 21:34:54 +1000
committerAllan McRae <allan@archlinux.org>2014-09-23 21:26:55 +1000
commit7e9ad22ac21329adcf470bb00f2d0a386376fddf (patch)
treeeabd40c10cd63a7518d8566927cb1daa8fe5cad1 /test
parentd3f5ab0e706071b8724575eb356b865d55da8df6 (diff)
downloadpacman-7e9ad22ac21329adcf470bb00f2d0a386376fddf.tar.xz
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 <allan@archlinux.org>
Diffstat (limited to 'test')
-rw-r--r--test/pacman/pmdb.py2
1 files changed, 2 insertions, 0 deletions
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