The `all` architecture is defined for e.g. all proxmox perl packages,
so add it to the enum.

This would lead to an error in the update view in PDM:
[...] failed to parse api response: unknown variant `all` [...]

Reported-by: Lukas Wagner <[email protected]>
Signed-off-by: Nicolas Frey <[email protected]>
---
 PVE/API2/APT.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/API2/APT.pm b/PVE/API2/APT.pm
index 1ccbaf97..395ce070 100644
--- a/PVE/API2/APT.pm
+++ b/PVE/API2/APT.pm
@@ -204,7 +204,7 @@ my $apt_package_return_props = {
     Arch => {
         type => 'string',
         description => 'Package Architecture.',
-        enum => [qw(armhf arm64 amd64 ppc64el risc64 s390x)],
+        enum => [qw(armhf arm64 amd64 ppc64el risc64 s390x all)],
     },
     Description => {
         type => 'string',
-- 
2.47.3


_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to