mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
added some debug logs
This commit is contained in:
parent
d5bfc60734
commit
80a5ffa8d8
@ -43,6 +43,8 @@ pmdb_t *db_open(char *root, char *dbpath, char *treename)
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
_alpm_log(PM_LOG_DEBUG, "opening database '%s'", treename);
|
||||
|
||||
MALLOC(db, sizeof(pmdb_t));
|
||||
|
||||
MALLOC(db->path, strlen(root)+strlen(dbpath)+strlen(treename)+2);
|
||||
@ -71,6 +73,8 @@ void db_close(pmdb_t *db)
|
||||
return;
|
||||
}
|
||||
|
||||
_alpm_log(PM_LOG_DEBUG, "closing database '%s'", db->treename);
|
||||
|
||||
if(db->dir) {
|
||||
closedir(db->dir);
|
||||
db->dir = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user