compose: honor --proxy again

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2015-04-14 14:45:35 +02:00
parent de47c23450
commit cab58e37ea

View File

@ -201,7 +201,7 @@ install_packages_in_root (RpmOstreeTreeComposeContext *self,
* stuff to a subprocess.
*/
hifctx = hif_context_new ();
hif_context_set_http_proxy (hifctx, g_getenv ("http_proxy"));
hif_context_set_http_proxy (hifctx, opt_proxy ? opt_proxy : g_getenv ("http_proxy"));
hif_context_set_install_root (hifctx, gs_file_get_path_cached (yumroot));