This is v2 of a patchset submitted long ago.  It has been rebased and
had its memory leaks fixed.

With this patchset, pacman will create a local database directory if it
is missing (but not the root of the database - i.e. /var/lib/pacman/ still
needs to be present).  When creating the database or finding an empty local
database it will add the .alpm_db_version file and add the version. For
existing pacman databases this file is created by the pacman-db-upgrade
script.  Finally the version of the local database is checked during
db validation.

Allan McRae (4):
  Create local database directory if it is missing
  Add version file when creating local database directory
  Add version file to empty local database
  Check the version of the local database during validation

 lib/libalpm/be_local.c | 119 +++++++++++++++++++++++++++++++++----------------
 test/pacman/pmdb.py    |   2 +
 test/pacman/pmtest.py  |   3 ++
 3 files changed, 85 insertions(+), 39 deletions(-)

-- 
2.1.0

Reply via email to