Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-10-18 16:39:04 -0500
committerDan McGee <dan@archlinux.org>2011-05-05 12:31:09 -0500
commit42ab639bf715cbacb3598b6c42388ba4bbb2d3d4 (patch)
treefc3d55133ca0733ff9c3adf83a50265d90a5ab43 /src
parent3045f09ef49d775fec5e772f5f8b894e31388fbf (diff)
Improve database server API
Currently we have one call that has all sorts of crazy behavior and doesn't make a whole lot of sense. Go from one method to the normal four methods we have for all of our other lists we use in the library to make it a lot easier for a frontend to manipulate server lists. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/conf.c b/src/pacman/conf.c
index 2ce73b64..4302ad95 100644
--- a/src/pacman/conf.c
+++ b/src/pacman/conf.c
@@ -387,7 +387,7 @@ static int _add_mirror(pmdb_t *db, char *value)
server = temp;
}
- if(alpm_db_setserver(db, server) != 0) {
+ if(alpm_db_add_server(db, server) != 0) {
/* pm_errno is set by alpm_db_setserver */
pm_printf(PM_LOG_ERROR, _("could not add server URL to database '%s': %s (%s)\n"),
dbname, server, alpm_strerrorlast());