index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-06-04 12:51:23 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-06-04 23:10:49 -0400 |
commit | 358cc5804a2df873180e6d9ef2420ab3247f8437 (patch) | |
tree | 9254dd518c1873aebe78f548d311202a6f1fe2aa /lib/libalpm/db.c | |
parent | 6949ab97613de3622a4c392a3d33080164eec794 (diff) |
-rw-r--r-- | lib/libalpm/db.c | 5 |
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index 0aa8de18..e5489973 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -157,7 +157,7 @@ alpm_list_t *_alpm_db_search(pmdb_t *db, alpm_list_t *needles) return(ret); } -pmdb_t *_alpm_db_register(const char *treename, alpm_cb_db_register callback) +pmdb_t *_alpm_db_register(const char *treename) { struct stat buf; pmdb_t *db; @@ -206,9 +206,6 @@ pmdb_t *_alpm_db_register(const char *treename, alpm_cb_db_register callback) RET_ERR(PM_ERR_DB_OPEN, NULL); } - /* Only call callback on NEW registration. */ - if(callback) callback(treename, db); - if(strcmp(treename, "local") == 0) { handle->db_local = db; } else { |