Blame SOURCES/1164-no-caching.patch

3d7fac
From f9f74b37d7be84279245364f483f60a8330366a9 Mon Sep 17 00:00:00 2001
3d7fac
From: Matthew Almond <malmond@fb.com>
3d7fac
Date: Thu, 18 Mar 2021 15:36:30 -0700
3d7fac
Subject: [PATCH] Turn off caching locally for backports
3d7fac
3d7fac
---
3d7fac
 libdnf/utils/utils.cpp | 7 ++++++-
3d7fac
 1 file changed, 6 insertions(+), 1 deletion(-)
3d7fac
3d7fac
diff --git a/libdnf/utils/utils.cpp b/libdnf/utils/utils.cpp
3d7fac
index 450718d3..21673786 100644
3d7fac
--- a/libdnf/utils/utils.cpp
3d7fac
+++ b/libdnf/utils/utils.cpp
3d7fac
@@ -322,7 +322,12 @@ void checksum(const char * type, const char * inPath, const char * checksum_vali
3d7fac
                        * an empty string
3d7fac
                        */
3d7fac
                       checksum_valid ? checksum_valid : "",
3d7fac
-                      TRUE,
3d7fac
+                      /**
3d7fac
+                       * librepo version in c8s does not include PR#232 and other
3d7fac
+                       * pre-requisites for per-checksum type. Turn off caching.
3d7fac
+                       * Note for transcoded rpms, we do have good caching.
3d7fac
+                       */
3d7fac
+                      FALSE,
3d7fac
                       &valid,
3d7fac
                       calculated_out,
3d7fac
                       &errP);
3d7fac
-- 
3d7fac
2.30.2
3d7fac