diff options
author | Dan McGee <dan@archlinux.org> | 2007-07-09 15:22:01 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-07-09 15:23:26 -0400 |
commit | 1480ac29e475e369fb781fe98ac5991e1a67e5e5 (patch) | |
tree | 425e59357955f56e2f947bdcc694e4c033460170 /lib/libalpm/trans.c | |
parent | 4906e15d0d31bf0442c25af44bcb637b87a7b027 (diff) | |
download | 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.c | 6 |
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)); } |