if (opkg_conf_load())
goto err0;
- if (pkg_hash_load_feeds())
+ if (pkg_hash_load_feeds(0))
goto err1;
if (pkg_hash_load_status_files())
/*
* Load in feed files from the cached "src" and/or "src/gz" locations.
*/
-int pkg_hash_load_feeds(void)
+int pkg_hash_load_feeds(int state_flags)
{
pkg_src_list_elt_t *iter;
pkg_src_t *src, *subdist;
sprintf_alloc(&list_file, "%s/%s", lists_dir, src->name);
if (file_exists(list_file)) {
- if (pkg_hash_add_from_file(list_file, src, NULL, 0, 0)) {
+ if (pkg_hash_add_from_file(list_file, src, NULL, 0, state_flags)) {
free(list_file);
return -1;
}
int dist_hash_add_from_file(const char *file_name, pkg_src_t * dist);
int pkg_hash_add_from_file(const char *file_name, pkg_src_t * src,
pkg_dest_t * dest, int is_status_file, int state_flags);
-int pkg_hash_load_feeds(void);
+int pkg_hash_load_feeds(int state_flags);
int pkg_hash_load_status_files(void);
void hash_insert_pkg(pkg_t * pkg, int set_status);
if (!nocheckfordirorfile) {
if (!noreadfeedsfile) {
- if (pkg_hash_load_feeds())
+ if (pkg_hash_load_feeds(SF_NEED_DETAIL))
goto err1;
}