summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-12-09 01:05:08 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-12-09 01:05:08 (EST)
commitbaa29393d2bf72533027eaf7d1ec18e7698503f3 (patch)
tree21621fd7b38ccb4c658d1ace40b4fcae9fbacf6c /libopkg
parent5cec98121cd85b63fcd80169a9f51fbf1f9da980 (diff)
Remove opkg_package_t from libopkg_test.c. Also, use OFFLINE_ROOT env var.
git-svn-id: http://opkg.googlecode.com/svn/trunk@474 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r--libopkg/opkg_conf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libopkg/opkg_conf.c b/libopkg/opkg_conf.c
index 9d40a21..47b5438 100644
--- a/libopkg/opkg_conf.c
+++ b/libopkg/opkg_conf.c
@@ -443,6 +443,9 @@ opkg_conf_init(const args_t *args)
nv_pair_list_init(&conf->arch_list);
+ if (!conf->offline_root)
+ conf->offline_root = xstrdup(getenv("OFFLINE_ROOT"));
+
if (args->conf_file) {
struct stat stat_buf;
err = stat(args->conf_file, &stat_buf);