Skip to content

Commit

Permalink
Make sure we're using zchunk files if they're available locally
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
  • Loading branch information
jdieter committed Sep 27, 2018
1 parent d4a62f4 commit fdb6816
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions librepo/yum.c
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,11 @@ lr_yum_use_local(LrHandle *handle, LrResult *result, GError **err)
return FALSE;
}

if(handle->cachedir)
lr_yum_switch_to_zchunk(handle, repomd);
else
g_debug("%s: Cache directory not set, disabling zchunk", __func__);

// Locate rest of metadata files
for (GSList *elem = repomd->records; elem; elem = g_slist_next(elem)) {
_cleanup_free_ char *path = NULL;
Expand Down

0 comments on commit fdb6816

Please sign in to comment.