[pbs-devel] [PATCH proxmox 1/2] apt-api-types: fix backward compatibility by encoding digest as array

Dietmar Maurer dietmar at proxmox.com
Wed Jul 17 09:35:30 CEST 2024


Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
 proxmox-apt-api-types/src/lib.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/proxmox-apt-api-types/src/lib.rs b/proxmox-apt-api-types/src/lib.rs
index 0331ffb6..6025722f 100644
--- a/proxmox-apt-api-types/src/lib.rs
+++ b/proxmox-apt-api-types/src/lib.rs
@@ -185,8 +185,9 @@ pub struct APTRepositoryFile {
     pub content: Option<String>,
 
     /// Digest of the original contents.
+    // We cannot use ConfigDigest here for compatibility reasons.
     #[serde(skip_serializing_if = "Option::is_none")]
-    pub digest: Option<ConfigDigest>,
+    pub digest: Option<[u8; 32]>,
 }
 
 #[api]
-- 
2.39.2




More information about the pbs-devel mailing list