Blob Blame History Raw
From a3b6102b4d2e79a8b74b036c6a29272a7f6e5c6a Mon Sep 17 00:00:00 2001
From: Richard Phibel <richardphibel@meta.com>
Date: Fri, 11 Aug 2023 00:43:21 +0200
Subject: [PATCH] Fix issue for transaction with transcoded and non-transcoded
 packages

The flag saying whether a package is transcoded is not clean-up between
each packages. Because of that if a non-transcoded package is treated
after a transcoded one, the package is treated as transcoded
---
 plugins/reflink.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugins/reflink.c b/plugins/reflink.c
index 986cbd172..20d35eefd 100644
--- a/plugins/reflink.c
+++ b/plugins/reflink.c
@@ -234,6 +234,7 @@ static rpmRC reflink_psm_post(rpmPlugin plugin, rpmte te, int res)
 	inodeIndexHashFree(state->inodeIndexes);
 	state->inodeIndexes = NULL;
     }
+    state->transcoded = 0;
     return RPMRC_OK;
 }
 
-- 
2.40.1