Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

avoid accidentally re-registering DBs

  • Loading branch information...
commit f6377c0fafd019e266125807e5a21a997d09f2cc 1 parent 5084869
@falconindy authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 cower.c
View
12 cower.c
@@ -399,13 +399,13 @@ alpm_handle_t *alpm_init(void) /* {{{ */
if(line[0] == '[' && line[linelen - 1] == ']') {
free(section);
section = strndup(&line[1], linelen - 2);
- }
- if(strcmp(section, "options") != 0) {
- if(!cfg.skiprepos && !alpm_list_find_str(cfg.ignore.repos, section)) {
- alpm_db_register_sync(pmhandle, section, 0);
- cwr_printf(LOG_DEBUG, "registering alpm db: %s\n", section);
- }
+ if(strcmp(section, "options") != 0) {
+ if(!cfg.skiprepos && !alpm_list_find_str(cfg.ignore.repos, section)) {
+ alpm_db_register_sync(pmhandle, section, 0);
+ cwr_printf(LOG_DEBUG, "registering alpm db: %s\n", section);
+ }
+ }
} else {
char *key, *token;
Please sign in to comment.
Something went wrong with that request. Please try again.