index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Griffin <aaron@archlinux.org> | 2006-10-27 21:15:26 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-10-27 21:15:26 +0000 |
commit | a4355d8d73b68bd2dde1be4b0c6ac61c628a74af (patch) | |
tree | f62bb19f65efc743a545c08d40d2e4b328d95c77 /lib/libalpm | |
parent | 3e5401b74de0bc19f6eac48dd45c656a5c4e5ed7 (diff) |
-rw-r--r-- | lib/libalpm/alpm.c | 7 |
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index f0798316..0c5f28e7 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -1182,7 +1182,12 @@ int alpm_parse_config(char *file, alpm_cb_db_register callback, const char *this if(this_section != NULL && strlen(this_section) > 0) { strncpy(section, this_section, min(255, strlen(this_section))); - db = _alpm_db_register(section, callback); + if(!strcmp(section, "local")) { + RET_ERR(PM_ERR_CONF_LOCAL, -1); + } + if(strcmp(section, "options")) { + db = _alpm_db_register(section, callback); + } } while(fgets(line, PATH_MAX, fp)) { |