Blob Blame History Raw
From e3667286a156eb5edcc38097c072d09e742bb313 Mon Sep 17 00:00:00 2001
From: Colin Walters <walters@verbum.org>
Date: Fri, 24 Jul 2015 15:16:59 -0400
Subject: [PATCH] compose: Accept old cached repos

Bodhi points rpm-ostree at the gold Fedora repo via `file:///`, and
libhif is broken in checking the mtime on `file://` repos.

Work around that here by just ignoring cache ages.
---
 src/app/rpmostree-compose-builtin-tree.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/app/rpmostree-compose-builtin-tree.c b/src/app/rpmostree-compose-builtin-tree.c
index 32dc10d..21c44de 100644
--- a/src/app/rpmostree-compose-builtin-tree.c
+++ b/src/app/rpmostree-compose-builtin-tree.c
@@ -206,6 +206,7 @@ install_packages_in_root (RpmOstreeTreeComposeContext  *self,
   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);
   hif_context_set_solv_dir (hifctx, solvdir);
   hif_context_set_lock_dir (hifctx, lockdir);
   hif_context_set_check_disk_space (hifctx, FALSE);
-- 
1.8.3.1