From f9cef75100e3b531fd00e008af9ece3aa6c01de1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 4 Aug 2021 12:40:51 +0200 Subject: [PATCH] dnf: when runnning with --network=never, use package metadata cache This implements the ability to rebuild packages from cache that was requested in #700. I don't think it can be said to resolve the issue, since this is only a partial solution, but useful nonetheless. --- mkosi/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 93908da01..89cb5393b 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -1789,6 +1789,9 @@ def invoke_dnf( "--setopt=install_weak_deps=0", ] + if args.with_network == "never": + cmdline += ["-C"] + if args.architecture is not None: cmdline += [f"--forcearch={args.architecture}"] -- 2.47.2