public inbox for pve-devel@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

* [pve-devel] applied: [PATCH apt-api-types] apt-api-types: make old_version optional
  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 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2025-11-13 10:14 UTC (permalink / raw)
  To: pve-devel, Dietmar Maurer

On Thu, 13 Nov 2025 10:50:44 +0100, Dietmar Maurer wrote:
> 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.
> 
> 

Applied, thanks!

[1/1] apt-api-types: make old_version optional
      commit: ef17b5db44eede753568231c03db141dfaecb8e0


_______________________________________________
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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal