From 2d739b6f213acdacbe3924bf56206a2692845f0a Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Thu, 7 May 2020 12:51:02 -0400 Subject: [PATCH] cmdlib: Lower cost of cosa RPM overrides repo Surprisingly, AFAICT there is nothing in libdnf today which automatically lowers the cost of local repos vs remote ones. Let's give it some help by adding a `cost=500` here (the default is 1000). This will allow libsolv to always pick the RPM from the overrides repo, even if the same NEVRA is available from a remote repo. --- src/cmdlib.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmdlib.sh b/src/cmdlib.sh index 50026b7efb..a945062842 100755 --- a/src/cmdlib.sh +++ b/src/cmdlib.sh @@ -353,6 +353,7 @@ EOF name=coreos-assembler-local-overrides baseurl=file://${workdir}/overrides/rpm gpgcheck=0 +cost=500 EOF fi rootfs_overrides="${overridesdir}/rootfs"