summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-29 09:20:54 +0200
committerDan McGee <dan@archlinux.org>2011-03-29 09:20:54 +0200
commit1a8c792e8fb8ec2098553112bf02a97fdc96e06e (patch)
treef60c8d2e036367799b8a569474dff8e57f22115e /lib
parent6303d4920c3b3403f2296a9c885468496603737e (diff)
downloadpacman-1a8c792e8fb8ec2098553112bf02a97fdc96e06e.tar.gz
pacman-1a8c792e8fb8ec2098553112bf02a97fdc96e06e.tar.xz
Fix an outdated comment
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib')
-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 bf6df06e..d9ed331e 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);