summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/trans.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-07-09 21:22:01 +0200
committerDan McGee <dan@archlinux.org>2007-07-09 21:23:26 +0200
commit1480ac29e475e369fb781fe98ac5991e1a67e5e5 (patch)
tree425e59357955f56e2f947bdcc694e4c033460170 /lib/libalpm/trans.c
parent4906e15d0d31bf0442c25af44bcb637b87a7b027 (diff)
downloadpacman-1480ac29e475e369fb781fe98ac5991e1a67e5e5.tar.gz
pacman-1480ac29e475e369fb781fe98ac5991e1a67e5e5.tar.xz
Clean up the alpm handle
Add some comments in handle.h, and remove the pmaccess_t part that we don't even use. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/trans.c')
-rw-r--r--lib/libalpm/trans.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c
index 82f11f3d..5d62e8e8 100644
--- a/lib/libalpm/trans.c
+++ b/lib/libalpm/trans.c
@@ -165,12 +165,6 @@ int SYMEXPORT alpm_trans_commit(alpm_list_t **data)
ASSERT(handle->trans != NULL, RET_ERR(PM_ERR_TRANS_NULL, -1));
ASSERT(handle->trans->state == STATE_PREPARED, RET_ERR(PM_ERR_TRANS_NOT_PREPARED, -1));
- /* Check for database R/W permission */
- if(!(handle->trans->flags & PM_TRANS_FLAG_PRINTURIS)) {
- /* The print-uris operation is a bit odd. So we explicitly check for it */
- ASSERT(handle->access == PM_ACCESS_RW, RET_ERR(PM_ERR_BADPERMS, -1));
- }
-
return(_alpm_trans_commit(handle->trans, data));
}