diff --git a/src/app/rpmostree-compose-builtin-tree.c b/src/app/rpmostree-compose-builtin-tree.c index c99e2e1b..d92c6674 100644 --- a/src/app/rpmostree-compose-builtin-tree.c +++ b/src/app/rpmostree-compose-builtin-tree.c @@ -192,7 +192,9 @@ install_packages_in_root (RpmOstreeTreeComposeContext *self, NULL); gs_free char *ret_new_inputhash = NULL; - hifctx = _rpmostree_libhif_get_default (); + hifctx = _rpmostree_libhif_new_default (); + if (opt_proxy) + hif_context_set_http_proxy (hifctx, opt_proxy); hif_context_set_install_root (hifctx, gs_file_get_path_cached (yumroot)); hif_context_set_cache_dir (hifctx, cachedir); hif_context_set_cache_age (hifctx, G_MAXUINT); diff --git a/src/libpriv/rpmostree-hif.c b/src/libpriv/rpmostree-hif.c index b79ec67e..78532b00 100644 --- a/src/libpriv/rpmostree-hif.c +++ b/src/libpriv/rpmostree-hif.c @@ -28,7 +28,7 @@ #include "rpmostree-cleanup.h" HifContext * -_rpmostree_libhif_get_default (void) +_rpmostree_libhif_new_default (void) { HifContext *hifctx; diff --git a/src/libpriv/rpmostree-hif.h b/src/libpriv/rpmostree-hif.h index 23f4f936..d4dd3f5c 100644 --- a/src/libpriv/rpmostree-hif.h +++ b/src/libpriv/rpmostree-hif.h @@ -24,7 +24,7 @@ #include #include -HifContext *_rpmostree_libhif_get_default (void); +HifContext *_rpmostree_libhif_new_default (void); gboolean _rpmostree_libhif_setup (HifContext *context, GCancellable *cancellable,