From baa29393d2bf72533027eaf7d1ec18e7698503f3 Mon Sep 17 00:00:00 2001 From: graham.gower Date: Wed, 09 Dec 2009 01:05:08 -0500 Subject: 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 --- (limited to 'libopkg') 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); -- cgit v0.9.1