Run setfiles after chroot (noto.kazufumi) imgcreate/dnfinst: Force latest packages from only specified repos (ngompa13)epel9
parent
9a7e6c055e
commit
b6a4a616e1
@ -1,35 +0,0 @@
|
|||||||
From 30e6260c41a011241ed5659d2d85e72661807351 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Neal Gompa <ngompa13@gmail.com>
|
|
||||||
Date: Sat, 24 Nov 2018 14:58:00 -0500
|
|
||||||
Subject: [PATCH] imgcreate/dnfinst: Force latest packages from only specified
|
|
||||||
repos
|
|
||||||
|
|
||||||
To ensure that the latest versions of things are picked for images,
|
|
||||||
we'll set 'best=1' and 'obsoletes=1', just as Mock does.
|
|
||||||
|
|
||||||
And to make sure we don't have host system repos leak in, we'll set
|
|
||||||
'reposdir=/dev/null', too.
|
|
||||||
---
|
|
||||||
imgcreate/dnfinst.py | 4 +++-
|
|
||||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/imgcreate/dnfinst.py b/imgcreate/dnfinst.py
|
|
||||||
index 720dd7d..06a5b24 100644
|
|
||||||
--- a/imgcreate/dnfinst.py
|
|
||||||
+++ b/imgcreate/dnfinst.py
|
|
||||||
@@ -73,9 +73,11 @@ class DnfLiveCD(dnf.Base):
|
|
||||||
conf += "plugins=1\n"
|
|
||||||
else:
|
|
||||||
conf += "plugins=0\n"
|
|
||||||
- conf += "reposdir=\n"
|
|
||||||
+ conf += "reposdir=/dev/null\n"
|
|
||||||
conf += "failovermethod=priority\n"
|
|
||||||
conf += "keepcache=1\n"
|
|
||||||
+ conf += "obsoletes=1\n"
|
|
||||||
+ conf += "best=1\n"
|
|
||||||
conf += "tsflags=nocontexts\n"
|
|
||||||
|
|
||||||
f = open(confpath, "w+")
|
|
||||||
--
|
|
||||||
2.17.2
|
|
||||||
|
|
@ -1 +1 @@
|
|||||||
SHA512 (livecd-tools-26.0.tar.gz) = b32c7de5570693a91aebc46e33b04f51b83ababe58614da9c8961267e0ba8120615ff76c4e612d6afce6da5e6f24fb494076044c7340e26b20c8177fe99f7c41
|
SHA512 (livecd-tools-26.1.tar.gz) = 240c13ec615b7c181227ad4223743f8221b27025184124001274d92c3a92c01755bf17fd91e86c5844535dc4e09387da1e2952faa004929d74a077850db9e8a6
|
||||||
|
Loading…
Reference in new issue