summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-05-05 22:23:36 +0200
committerDan McGee <dan@archlinux.org>2011-05-05 22:26:19 +0200
commit2cd79bc85305974ac0268838ec9e9a8e0fa42139 (patch)
tree855e33098deb31eff29db655b0bd22e97d695104 /lib
parentdd95c96b8ae4e9a585ce185131b25c34e471af65 (diff)
downloadpacman-2cd79bc85305974ac0268838ec9e9a8e0fa42139.tar.gz
pacman-2cd79bc85305974ac0268838ec9e9a8e0fa42139.tar.xz
Remove sync DB reregister check
It's your own damn fault if you do this, and this code is remnants from an old time when we weren't very good at coding. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/be_sync.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c
index cd4a8667..9d85a454 100644
--- a/lib/libalpm/be_sync.c
+++ b/lib/libalpm/be_sync.c
@@ -511,18 +511,8 @@ struct db_operations sync_db_ops = {
pmdb_t *_alpm_db_register_sync(const char *treename)
{
pmdb_t *db;
- alpm_list_t *i;
ALPM_LOG_FUNC;
-
- for(i = handle->dbs_sync; i; i = i->next) {
- pmdb_t *sdb = i->data;
- if(strcmp(treename, sdb->treename) == 0) {
- _alpm_log(PM_LOG_DEBUG, "attempt to re-register the '%s' database, using existing\n", sdb->treename);
- return sdb;
- }
- }
-
_alpm_log(PM_LOG_DEBUG, "registering sync database '%s'\n", treename);
db = _alpm_db_new(treename, 0);