diff options
author | John Lee <john_lee@openmoko.org> | 2008-01-15 15:28:44 +0000 |
---|---|---|
committer | Openmoko anonymizer key <devel@lists.openmoko.org> | 2008-01-15 15:28:44 +0000 |
commit | 58e5c1fe677e34b28943452f3acf93be83e737ce (patch) | |
tree | 02cefa00a00df80d419bb60f619d7c6ffb4c9c83 /packages/ipkg | |
parent | 575d1e9c93159b1bc54fc4c7e82673048883fb85 (diff) | |
parent | 7fbdf8b4dcd7a7a1d596c5c14ac9e2b545b9eff8 (diff) |
merge of '8996304d45d20965f75c306e6317a0238f26fbf7'
and 'd0954a8a227efc014d29aba8d911adfc59934357'
Diffstat (limited to 'packages/ipkg')
-rw-r--r-- | packages/ipkg/files/ipkg_bugfix.patch | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/packages/ipkg/files/ipkg_bugfix.patch b/packages/ipkg/files/ipkg_bugfix.patch deleted file mode 100644 index 51eccbb2bd..0000000000 --- a/packages/ipkg/files/ipkg_bugfix.patch +++ /dev/null @@ -1,44 +0,0 @@ -Index: C/ipkg_conf.c -=================================================================== ---- C.orig/ipkg_conf.c 2005-06-21 13:59:32.000000000 +0000 -+++ C/ipkg_conf.c 2007-11-27 01:11:17.000000000 +0000 -@@ -423,6 +423,7 @@ - nv_pair_t *nv_pair; - pkg_dest_t *dest; - char *root_dir; -+ char *list_dir2; - - for (iter = nv_pair_list->head; iter; iter = iter->next) { - nv_pair = iter->data; -@@ -432,8 +433,14 @@ - } else { - root_dir = strdup(nv_pair->value); - } -- dest = pkg_dest_list_append(&conf->pkg_dest_list, nv_pair->name, root_dir, lists_dir); -+ if (conf->offline_root) { -+ sprintf_alloc(&list_dir2, "%s%s", conf->offline_root, lists_dir); -+ } else { -+ list_dir2 = strdup(lists_dir); -+ } -+ dest = pkg_dest_list_append(&conf->pkg_dest_list, nv_pair->name, root_dir, list_dir2); - free(root_dir); -+ free(list_dir2); - if (dest == NULL) { - continue; - } -@@ -562,13 +569,13 @@ - } else if (strcmp(type, "dest") == 0) { - nv_pair_list_append(tmp_dest_nv_pair_list, name, value); - } else if (strcmp(type, "lists_dir") == 0) { -- *lists_dir = realloc(*lists_dir,strlen(value)+1); -+ *lists_dir = realloc(*lists_dir,strlen(name)+1); - if (*lists_dir == NULL) { - ipkg_message(conf, IPKG_ERROR, "ERROR: Not enough memory\n"); - free(options); - return EINVAL; - } -- sprintf (*lists_dir,"%s",value); -+ sprintf (*lists_dir,"%s", name); - } else if (strcmp(type, "arch") == 0) { - ipkg_message(conf, IPKG_INFO, "supported arch %s priority (%s)\n", name, value); - if (!value) { |