summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
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);