Skip to content

Commit 3874191

Browse files
committed
Fix the pveam arch filter for the trailing column (ProxmoxVE f3b7b64f)
The $ anchor never matched: pveam available prints a size column after the filename, so the architecture filter I ported an hour ago silently returned nothing and the OS picker came up empty. Upstream caught this the same day it shipped #16302. Same fix here.
1 parent 3447884 commit 3874191

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

shared/build-ui/defaults.func

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ _list_os_versions() {
9494
local arch
9595
arch="$(dpkg --print-architecture 2>/dev/null || echo amd64)"
9696
pveam available -section system 2>/dev/null |
97-
grep -E "_${arch}\.(tar\.zst|tar\.xz|tar\.gz)$" |
97+
grep -E "_${arch}\.(tar\.zst|tar\.xz|tar\.gz)([[:space:]]|$)" |
9898
awk '{print $2}' |
9999
sed -nE "s/^${ostype}-([0-9]+(\.[0-9]+)?).*/\1/p" |
100100
sort -u -V || true
@@ -111,7 +111,7 @@ _list_templates() {
111111
local arch
112112
arch="$(dpkg --print-architecture 2>/dev/null || echo amd64)"
113113
pveam available -section system 2>/dev/null |
114-
grep -E "_${arch}\.(tar\.zst|tar\.xz|tar\.gz)$" |
114+
grep -E "_${arch}\.(tar\.zst|tar\.xz|tar\.gz)([[:space:]]|$)" |
115115
awk '{print $2}' |
116116
grep -E "^${search}.*${pattern}" |
117117
sort -t - -k 2 -V || true

0 commit comments

Comments
 (0)