Move rpmdb home creation from backends to one level higher
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 21 Sep 2009 11:04:34 +0000 (14:04 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 21 Sep 2009 11:04:34 +0000 (14:04 +0300)
commit880f4cd41f8182c1c39f6678f79266932cccf082
tree5c29b8d564accc6cc90f6b2eac317e1c34ebb4a6
parentd3c75ad8eef518f413fb27184f9d81799a823e9b
Move rpmdb home creation from backends to one level higher
- this is a common operation for any backends, avoid duplication
- only try to create it once instead of every index open, and if it
  doesn't exist and cant be created, error out instead of trying to continue
  in vain
lib/backend/db3.c
lib/backend/sqlite.c
lib/rpmdb.c
lib/rpmdb_internal.h