summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2021-04-30 17:02:12 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2021-04-30 17:02:12 -0700
commit376c2fbc8e4f084dc1cf3cfb30d5c34b6148a534 (patch)
tree54f5dcbc91315fe437737ea35e74b12c8926c572
parentd7daea30ea4d16bc4a5ed41c5832263b8ecc968c (diff)
downloadchef-lcg/dnf-fix-blocking-and-flushing.tar.gz
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/provider/package/dnf/dnf_helper.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/provider/package/dnf/dnf_helper.py b/lib/chef/provider/package/dnf/dnf_helper.py
index 7b47872bce..dcd1b8fcae 100644
--- a/lib/chef/provider/package/dnf/dnf_helper.py
+++ b/lib/chef/provider/package/dnf/dnf_helper.py
@@ -19,6 +19,7 @@ def get_sack():
conf.read()
conf.installroot = '/'
conf.assumeyes = True
+ conf.cacheonly = True
subst = conf.substitutions
subst.update_from_etc(conf.installroot)
try: