From 1660ed3cf9069f84d96670b5443a9f1542b7865d Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Tue, 16 Jul 2013 21:48:38 +1000 Subject: Add version file to empty local database If a user manually creates the local database directory, or has an empty local database for some other reason, we silently add a version file Signed-off-by: Allan McRae --- test/pacman/pmtest.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/pacman/pmtest.py b/test/pacman/pmtest.py index 78b9e2d1..75a28d27 100644 --- a/test/pacman/pmtest.py +++ b/test/pacman/pmtest.py @@ -180,6 +180,9 @@ class pmtest(object): for pkg in self.db["local"].pkgs: vprint("\tinstalling %s" % pkg.fullname()) pkg.install_package(self.root) + if self.db["local"].pkgs: + path = os.path.join(self.root, util.PM_DBPATH, "local") + util.mkfile(path, ".alpm_db_version", "9") # Done. vprint(" Taking a snapshot of the file system") -- cgit v1.2.3-70-g09d2