summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-29 19:21:07 +0200
committerDan McGee <dan@archlinux.org>2011-03-29 19:21:07 +0200
commitd3d18a42d2a12f65c51dec34608921cec7b42068 (patch)
treec723c6a943e32fd5fabfddf9d671014f9e65b961 /lib/libalpm/db.c
parent9477abc3591905a20acbfe7b8ce7832617d72701 (diff)
parent287e8d356e8be8ae4af00e34e25d3f6727945952 (diff)
downloadpacman-d3d18a42d2a12f65c51dec34608921cec7b42068.tar.gz
pacman-d3d18a42d2a12f65c51dec34608921cec7b42068.tar.xz
Merge branch 'maint'
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r--lib/libalpm/db.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index 55b711fb..cc01bbf4 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -90,10 +90,7 @@ int SYMEXPORT alpm_db_unregister_all(void)
/* Do not unregister a database if a transaction is on-going */
ASSERT(handle->trans == NULL, RET_ERR(PM_ERR_TRANS_NOT_NULL, -1));
- /* since the local DB is registered in alpm_initialize(), we'll be
- * symmetrical and let the cleanup occur in alpm_release() */
-
- /* and also sync ones */
+ /* unregister all sync dbs */
for(i = handle->dbs_sync; i; i = i->next) {
db = i->data;
db->ops->unregister(db);