index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-01-28 17:41:15 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-29 12:13:56 -0600 |
commit | ef86da97f54a90ee4ba3ba8ea7963135e7bae8ed (patch) | |
tree | 99c492d170d3780ac2530413031593cc248a8fd3 /lib/libalpm/be_local.c | |
parent | 9b876fff09f2af10cba6824bec03d8fe3e167b5b (diff) |
-rw-r--r-- | lib/libalpm/be_local.c | 7 |
diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c index ea59ceca..9602c825 100644 --- a/lib/libalpm/be_local.c +++ b/lib/libalpm/be_local.c @@ -400,7 +400,7 @@ static int local_db_populate(pmdb_t *db) pkg = _alpm_pkg_new(); if(pkg == NULL) { closedir(dbdir); - return(-1); + RET_ERR(PM_ERR_MEMORY, -1); } /* split the db entry name */ if(_alpm_splitname(name, pkg) != 0) { @@ -900,11 +900,6 @@ pmdb_t *_alpm_db_register_local(void) ALPM_LOG_FUNC; - if(handle->db_local != NULL) { - _alpm_log(PM_LOG_WARNING, _("attempt to re-register the 'local' DB\n")); - RET_ERR(PM_ERR_DB_NOT_NULL, NULL); - } - _alpm_log(PM_LOG_DEBUG, "registering local database\n"); db = _alpm_db_new("local", 1); |