mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-13 12:55:08 -05:00
Fix an outdated comment
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
6303d4920c
commit
1a8c792e8f
@ -90,10 +90,7 @@ int SYMEXPORT alpm_db_unregister_all(void)
|
|||||||
/* Do not unregister a database if a transaction is on-going */
|
/* Do not unregister a database if a transaction is on-going */
|
||||||
ASSERT(handle->trans == NULL, RET_ERR(PM_ERR_TRANS_NOT_NULL, -1));
|
ASSERT(handle->trans == NULL, RET_ERR(PM_ERR_TRANS_NOT_NULL, -1));
|
||||||
|
|
||||||
/* since the local DB is registered in alpm_initialize(), we'll be
|
/* unregister all sync dbs */
|
||||||
* symmetrical and let the cleanup occur in alpm_release() */
|
|
||||||
|
|
||||||
/* and also sync ones */
|
|
||||||
for(i = handle->dbs_sync; i; i = i->next) {
|
for(i = handle->dbs_sync; i; i = i->next) {
|
||||||
db = i->data;
|
db = i->data;
|
||||||
db->ops->unregister(db);
|
db->ops->unregister(db);
|
||||||
|
Loading…
Reference in New Issue
Block a user