From 2858b18db8d4cbbf5b76fee3abd734c2fc773e12 Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Mon, 15 Dec 2008 00:28:44 -0500 Subject: opkg: adding cache support opkg-cl --cache Thank for Werner git-svn-id: http://opkg.googlecode.com/svn/trunk@154 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/opkg.c') 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); -- cgit v0.9.1