Merge pull request #203 from cgwalters/shared-libhif-review
Honor --proxy again, tweak internal libhif API
This commit is contained in:
commit
81bd21e77b
@ -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);
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include "rpmostree-cleanup.h"
|
||||
|
||||
HifContext *
|
||||
_rpmostree_libhif_get_default (void)
|
||||
_rpmostree_libhif_new_default (void)
|
||||
{
|
||||
HifContext *hifctx;
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include <libhif.h>
|
||||
#include <libhif/hif-utils.h>
|
||||
|
||||
HifContext *_rpmostree_libhif_get_default (void);
|
||||
HifContext *_rpmostree_libhif_new_default (void);
|
||||
|
||||
gboolean _rpmostree_libhif_setup (HifContext *context,
|
||||
GCancellable *cancellable,
|
||||
|
Loading…
Reference in New Issue
Block a user