if (r < 0)
return 1;
+ DEBUG(pakfire, "Reading repository configuration from %s\n", path);
+
char* paths[2] = {
path, NULL,
};
}
}
+ // Success
+ r = 0;
+
ERROR:
if (d)
fts_close(d);
if (*default_path && errno == ENOENT)
return 0;
+ ERROR(pakfire, "Could not open configuration file %s: %s\n", path, strerror(errno));
return 1;
}
// Read configuration from file
int r = pakfire_config_read(pakfire->config, f);
- if (r)
+ if (r) {
+ ERROR(pakfire, "Could not parse configuration file %s: %s\n", path, strerror(errno));
goto ERROR;
+ }
// Import distro configuration
r = pakfire_config_import_distro(pakfire);