core: Fix lock directory initialization
Though in practice, we just aren't using this right now. Closes: #504 Approved by: jlebon
This commit is contained in:
parent
be7e29fb61
commit
aed6077e73
@ -393,8 +393,8 @@ rpmostree_context_new_internal (int userroot_dfd,
|
|||||||
dnf_context_set_solv_dir (ret->hifctx, cachedir);
|
dnf_context_set_solv_dir (ret->hifctx, cachedir);
|
||||||
}
|
}
|
||||||
{ const char *lock = glnx_strjoina ("cache/", RPMOSTREE_DIR_LOCK);
|
{ const char *lock = glnx_strjoina ("cache/", RPMOSTREE_DIR_LOCK);
|
||||||
g_autofree char *cachedir = glnx_fdrel_abspath (userroot_dfd, lock);
|
g_autofree char *lockdir = glnx_fdrel_abspath (userroot_dfd, lock);
|
||||||
dnf_context_set_lock_dir (ret->hifctx, lock);
|
dnf_context_set_lock_dir (ret->hifctx, lockdir);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fstatat (userroot_dfd, "repo", &stbuf, 0) < 0)
|
if (fstatat (userroot_dfd, "repo", &stbuf, 0) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user