index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2009-01-03 00:18:22 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-01-03 00:18:22 -0600 |
commit | a30bf868ca4cce5464f7e4aa55cd7e7d4eade9a2 (patch) | |
tree | b1bf8a4c75855b7a3a61861ad20ff690fb5ad460 /lib/libalpm/add.c | |
parent | 1cc8ad6112ed07a71f356a6bb0f06f117b36b3b2 (diff) | |
parent | a73ad4f0e3981acab7234e4b17a08a52bd273ab9 (diff) |
-rw-r--r-- | lib/libalpm/add.c | 10 |
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index 50405895..b0a7671b 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -697,6 +697,16 @@ static int commit_single_pkg(pmpkg_t *newpkg, int pkg_current, int pkg_count, } } + /* prepare directory for database entries so permission are correct after + changelog/install script installation (FS#12263) */ + if(_alpm_db_prepare(db, newpkg)) { + alpm_logaction("error: could not create database entry %s-%s\n", + alpm_pkg_get_name(newpkg), alpm_pkg_get_version(newpkg)); + pm_errno = PM_ERR_DB_WRITE; + ret = -1; + goto cleanup; + } + if(!(trans->flags & PM_TRANS_FLAG_DBONLY)) { struct archive *archive; struct archive_entry *entry; |