diff options
author | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2008-12-15 00:28:44 (EST) |
---|---|---|
committer | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2008-12-15 00:28:44 (EST) |
commit | 2858b18db8d4cbbf5b76fee3abd734c2fc773e12 (patch) | |
tree | cee8c0c3a43b722f62680ed61a943b3273a68f66 /libopkg/opkg.c | |
parent | bb746681b0455150179978ddd5e6fadb4d18b0f3 (diff) |
opkg: adding cache support
opkg-cl --cache <cache_directory>
Thank for Werner
git-svn-id: http://opkg.googlecode.com/svn/trunk@154 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/opkg.c')
-rw-r--r-- | libopkg/opkg.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libopkg/opkg.c b/libopkg/opkg.c index 4123611..7e67755 100644 --- a/libopkg/opkg.c +++ b/libopkg/opkg.c @@ -273,6 +273,12 @@ opkg_re_read_config_files (opkg_t *opkg) a->offline_root_post_script_cmd = strdup (c->offline_root_post_script_cmd); } + if (c->cache) { + if (a->cache) + free (a->cache); + a->cache = strdup(c->cache); + } + /* throw away old opkg_conf and start again */ opkg_conf_deinit (opkg->conf); opkg_conf_init (opkg->conf, opkg->args); |