all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH apt-api-types] apt-api-types: make old_version optional
@ 2025-11-13  9:50 Dietmar Maurer
  2025-11-13 10:14 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Dietmar Maurer @ 2025-11-13  9:50 UTC (permalink / raw)
  To: pve-devel

The old_version field only exists for upgrades, not e.g. new
installations. We already had this change in proxmox-yew-comp,
but it seems we forgot to change it here.

Signed-off-by: Dietmar Maurer <dietmar@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 7fe9ad82..58bd1973 100644
--- a/proxmox-apt-api-types/src/lib.rs
+++ b/proxmox-apt-api-types/src/lib.rs
@@ -307,7 +307,8 @@ pub struct APTUpdateInfo {
     /// New version to be updated to
     pub version: String,
     /// Old version currently installed
-    pub old_version: String,
+    #[serde(skip_serializing_if = "Option::is_none")]
+    pub old_version: Option<String>,
     /// Package origin
     pub origin: String,
     /// Package priority in human-readable form
-- 
2.47.3


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-11-13 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-13  9:50 [pve-devel] [PATCH apt-api-types] apt-api-types: make old_version optional Dietmar Maurer
2025-11-13 10:14 ` [pve-devel] applied: " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal