richardphibel / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
Richard Phibel 51dac1
From a3b6102b4d2e79a8b74b036c6a29272a7f6e5c6a Mon Sep 17 00:00:00 2001
Richard Phibel 51dac1
From: Richard Phibel <richardphibel@meta.com>
Richard Phibel 51dac1
Date: Fri, 11 Aug 2023 00:43:21 +0200
Richard Phibel 51dac1
Subject: [PATCH] Fix issue for transaction with transcoded and non-transcoded
Richard Phibel 51dac1
 packages
Richard Phibel 51dac1
Richard Phibel 51dac1
The flag saying whether a package is transcoded is not clean-up between
Richard Phibel 51dac1
each packages. Because of that if a non-transcoded package is treated
Richard Phibel 51dac1
after a transcoded one, the package is treated as transcoded
Richard Phibel 51dac1
---
Richard Phibel 51dac1
 plugins/reflink.c | 1 +
Richard Phibel 51dac1
 1 file changed, 1 insertion(+)
Richard Phibel 51dac1
Richard Phibel 51dac1
diff --git a/plugins/reflink.c b/plugins/reflink.c
Richard Phibel 51dac1
index 986cbd172..20d35eefd 100644
Richard Phibel 51dac1
--- a/plugins/reflink.c
Richard Phibel 51dac1
+++ b/plugins/reflink.c
Richard Phibel 51dac1
@@ -234,6 +234,7 @@ static rpmRC reflink_psm_post(rpmPlugin plugin, rpmte te, int res)
Richard Phibel 51dac1
 	inodeIndexHashFree(state->inodeIndexes);
Richard Phibel 51dac1
 	state->inodeIndexes = NULL;
Richard Phibel 51dac1
     }
Richard Phibel 51dac1
+    state->transcoded = 0;
Richard Phibel 51dac1
     return RPMRC_OK;
Richard Phibel 51dac1
 }
Richard Phibel 51dac1
 
Richard Phibel 51dac1
-- 
Richard Phibel 51dac1
2.40.1
Richard Phibel 51dac1