From 3b8b8a106d4d7b28d3972d8b2911ebe9b79bfd1b Mon Sep 17 00:00:00 2001 From: chantra Date: Aug 02 2022 22:05:13 +0000 Subject: [pr222] Adapt patch to build after 0002-Fix-alloc-free-mismatches-from-covscan.patch is applied --- diff --git a/SOURCES/222.patch b/SOURCES/222.patch index 6a2321d..5b8aa41 100644 --- a/SOURCES/222.patch +++ b/SOURCES/222.patch @@ -134,10 +134,10 @@ index 47e59467..0f27815e 100644 } } -- checksum = lr_checksum_fd(type, fd, err); +- char *checksum = lr_checksum_fd(type, fd, err); - if (!checksum) - return FALSE; -+ checksum = lr_checksum_cow_fd(type, fd, err); ++ char *checksum = lr_checksum_cow_fd(type, fd, err); + if (checksum) { + // if checksum is found in CoW package, do not cache it in xattr + // because looking this up is nearly constant time (cheap) but diff --git a/SPECS/librepo.spec b/SPECS/librepo.spec index be4aa88..9468397 100644 --- a/SPECS/librepo.spec +++ b/SPECS/librepo.spec @@ -111,6 +111,7 @@ Python 3 bindings for the librepo library. %changelog * Tue Aug 02 2022 Manu Bretelle - 1.14.2-3.1 - Rebuild for Hyperscale +- Adapt 222.patch to apply after 0002-Fix-alloc-free-mismatches-from-covscan.patch * Mon Jul 25 2022 Lukas Hrazky - 1.14.2-3 - Fix covscan issues