From a8a2a089856283f8da44b7a47c10e92cb8af2321 Mon Sep 17 00:00:00 2001 From: Ivo Petrov Date: Fri, 25 Oct 2024 02:38:43 -0400 Subject: [PATCH] Manually create the rpm cache directory before pkg download --- pkg/rpm/resolver/templates/rpm-resolution.sh.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/rpm/resolver/templates/rpm-resolution.sh.tpl b/pkg/rpm/resolver/templates/rpm-resolution.sh.tpl index c8097edc..ae1c9196 100644 --- a/pkg/rpm/resolver/templates/rpm-resolution.sh.tpl +++ b/pkg/rpm/resolver/templates/rpm-resolution.sh.tpl @@ -38,6 +38,8 @@ rpm --import {{ .LocalGPGList }} rpm -Kv {{ .LocalRPMList }} {{ end -}} +mkdir -p {{.CacheDir}} + zypper \ --pkg-cache-dir {{.CacheDir}} \ --gpg-auto-import-keys \