Fix the case where -o is used, but no conf file is passed.
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Fri, 13 Nov 2009 05:57:45 +0000 (05:57 +0000)
committergraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Fri, 13 Nov 2009 05:57:45 +0000 (05:57 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@300 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/opkg_conf.c

index 2d7b8819ba54e5781a47d1b02bdb3bb01cea00e6..2a3ea0c56f7060e05375c76a346d33e6bdac63ae 100644 (file)
@@ -154,8 +154,8 @@ int opkg_conf_init(opkg_conf_t *conf, const args_t *args)
                }
      }
 
-     offline_root = conf->offline_root;
      opkg_conf_override_string(&conf->offline_root, args->offline_root);
+     offline_root = conf->offline_root;
 
      if (conf->offline_root)
          sprintf_alloc(&etc_opkg_conf_pattern, "%s/etc/opkg/*.conf", conf->offline_root);