public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Shannon Sterz <s.sterz@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH datacenter-manager master v4 3/3] api/apt: set `proxmox-datacenter-manager` as pdm's virtual package
Date: Wed, 10 Sep 2025 12:24:42 +0200	[thread overview]
Message-ID: <20250910102441.108401-6-s.sterz@proxmox.com> (raw)
In-Reply-To: <20250910102441.108401-2-s.sterz@proxmox.com>

pdm currently has no virtual meta package, so the previous parameters
here returned an unknown package, as `proxmox-datacenter` does not
exist. by replacing it with `proxmox-datacenter-manager` we get the
same package information returned twice. except, `ExtraInfo` will
contain the running kernel version for the first package and the
running api version for the second. however, that is preferable over
confusingly returning `unknown` here for every field (except, for
`ExtraInfo` and `Package`).

Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
---
 server/src/api/nodes/apt.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/api/nodes/apt.rs b/server/src/api/nodes/apt.rs
index d54b0a6..f14bf78 100644
--- a/server/src/api/nodes/apt.rs
+++ b/server/src/api/nodes/apt.rs
@@ -178,7 +178,7 @@ pub fn get_versions() -> Result<Vec<APTUpdateInfo>, Error> {
     let running_daemon_version = format!("running version: {version}.{release}");

     proxmox_apt::get_package_versions(
-        "proxmox-datacenter",
+        "proxmox-datacenter-manager",
         "proxmox-datacenter-manager",
         &running_daemon_version,
         PACKAGES,
--
2.47.3



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


  parent reply	other threads:[~2025-09-10 10:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-10 10:24 [pdm-devel] [PATCH datacenter-manager master v4 0/3] version command and upgrade checks for pdm Shannon Sterz
2025-09-10 10:24 ` [pdm-devel] [PATCH datacenter-manager master v4 1/3] server: add pdmAtoB upgrade checker script Shannon Sterz
2025-09-10 10:24 ` [pdm-devel] [PATCH datacenter-manager master v4 2/3] cli/admin: add a versions command to show current package versions Shannon Sterz
2025-09-10 10:24 ` Shannon Sterz [this message]
2025-09-10 12:22 ` [pdm-devel] applied-series: [PATCH datacenter-manager master v4 0/3] version command and upgrade checks for pdm Wolfgang Bumiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250910102441.108401-6-s.sterz@proxmox.com \
    --to=s.sterz@proxmox.com \
    --cc=pdm-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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