diff --git a/dnf/dnf-main.c b/dnf/dnf-main.c index 661dfee..f26f36e 100644 --- a/dnf/dnf-main.c +++ b/dnf/dnf-main.c @@ -272,7 +272,7 @@ context_new (void) { DnfContext *ctx = dnf_context_new (); -#define CACHEDIR "/var/cache/yum" +#define CACHEDIR "/var/cache/microdnf" dnf_context_set_cache_dir (ctx, CACHEDIR"/metadata"); dnf_context_set_solv_dir (ctx, CACHEDIR"/solv"); dnf_context_set_lock_dir (ctx, CACHEDIR"/lock"); diff --git a/microdnf.spec b/microdnf.spec index 81d8185..bf19190 100644 --- a/microdnf.spec +++ b/microdnf.spec @@ -42,6 +42,7 @@ minimal environment possible so you can build up to exactly what you need. %install %meson_install +mkdir -p %{buildroot}/var/cache/microdnf %check %meson_test @@ -51,5 +52,6 @@ minimal environment possible so you can build up to exactly what you need. %doc README.md %{_mandir}/man8/microdnf.8* %{_bindir}/%{name} +%dir /var/cache/microdnf %changelog