summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/db.h
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2009-01-02 10:12:22 +0100
committerDan McGee <dan@archlinux.org>2009-01-03 06:52:32 +0100
commita73ad4f0e3981acab7234e4b17a08a52bd273ab9 (patch)
tree6fea0afe2a4cf4fc57b68bc89fd816f2573ebf0c /lib/libalpm/db.h
parentb3169a5687bfc02fd512f1a1b5f83dfe00bbce7c (diff)
downloadpacman-a73ad4f0e3981acab7234e4b17a08a52bd273ab9.tar.gz
pacman-a73ad4f0e3981acab7234e4b17a08a52bd273ab9.tar.xz
Separate local db directory creation and db write
Changelogs and install files were getting extracted into the local db folder before it was manually created. This created issues for uses with 0077 umasks and was highlighted with the new sudo handling of umasks (FS#12263). This moves the local db creation to its own function which is called before the start of package archive extraction. Also, added a check that the folder is actually created. Signed-off-by: Allan McRae <allan@archlinux.org> [Dan: rename to _alpm_db_prepare()] Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/db.h')
-rw-r--r--lib/libalpm/db.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/db.h b/lib/libalpm/db.h
index 96fac0dd..25b90b5f 100644
--- a/lib/libalpm/db.h
+++ b/lib/libalpm/db.h
@@ -60,6 +60,7 @@ int _alpm_db_open(pmdb_t *db);
void _alpm_db_close(pmdb_t *db);
int _alpm_db_populate(pmdb_t *db);
int _alpm_db_read(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq);
+int _alpm_db_prepare(pmdb_t *db, pmpkg_t *info);
int _alpm_db_write(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq);
int _alpm_db_remove(pmdb_t *db, pmpkg_t *info);