richardphibel / rpms / rpm

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