Blob Blame History Raw
From f9f74b37d7be84279245364f483f60a8330366a9 Mon Sep 17 00:00:00 2001
From: Matthew Almond <malmond@fb.com>
Date: Thu, 18 Mar 2021 15:36:30 -0700
Subject: [PATCH] Turn off caching locally for backports

---
 libdnf/utils/utils.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/libdnf/utils/utils.cpp b/libdnf/utils/utils.cpp
index 450718d3..21673786 100644
--- a/libdnf/utils/utils.cpp
+++ b/libdnf/utils/utils.cpp
@@ -322,7 +322,12 @@ void checksum(const char * type, const char * inPath, const char * checksum_vali
                        * an empty string
                        */
                       checksum_valid ? checksum_valid : "",
-                      TRUE,
+                      /**
+                       * librepo version in c8s does not include PR#232 and other
+                       * pre-requisites for per-checksum type. Turn off caching.
+                       * Note for transcoded rpms, we do have good caching.
+                       */
+                      FALSE,
                       &valid,
                       calculated_out,
                       &errP);
-- 
2.30.2