2 ===================================================================
3 --- C.orig/ipkg_conf.c 2005-06-21 13:59:32.000000000 +0000
4 +++ C/ipkg_conf.c 2007-11-27 01:11:17.000000000 +0000
11 for (iter = nv_pair_list->head; iter; iter = iter->next) {
15 root_dir = strdup(nv_pair->value);
17 - dest = pkg_dest_list_append(&conf->pkg_dest_list, nv_pair->name, root_dir, lists_dir);
18 + if (conf->offline_root) {
19 + sprintf_alloc(&list_dir2, "%s%s", conf->offline_root, lists_dir);
21 + list_dir2 = strdup(lists_dir);
23 + dest = pkg_dest_list_append(&conf->pkg_dest_list, nv_pair->name, root_dir, list_dir2);
30 } else if (strcmp(type, "dest") == 0) {
31 nv_pair_list_append(tmp_dest_nv_pair_list, name, value);
32 } else if (strcmp(type, "lists_dir") == 0) {
33 - *lists_dir = realloc(*lists_dir,strlen(value)+1);
34 + *lists_dir = realloc(*lists_dir,strlen(name)+1);
35 if (*lists_dir == NULL) {
36 ipkg_message(conf, IPKG_ERROR, "ERROR: Not enough memory\n");
40 - sprintf (*lists_dir,"%s",value);
41 + sprintf (*lists_dir,"%s", name);
42 } else if (strcmp(type, "arch") == 0) {
43 ipkg_message(conf, IPKG_INFO, "supported arch %s priority (%s)\n", name, value);