1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-15 01:04:37 +02:00

Fix architecture labeling for multi-architecture container builds.

When the architecture was not specified it was being set to x86_64 rather than the host architecture.
This commit is contained in:
David Steele
2025-05-27 17:14:18 -04:00
parent f4e1adf059
commit f494dd21ad

View File

@ -386,7 +386,7 @@ sub containerBuild
my $strImageParent =
(defined($strArch) ? "${strArch}/" : (vmArch($strOS) eq VM_ARCH_X86_64 ? '' : vmArch($strOS) . '/')) .
"$$oVm{$strOS}{&VM_IMAGE}";
$strArch = defined($strArch) ? $strArch : VM_ARCH_X86_64;
$strArch = defined($strArch) ? $strArch : hostArch();
my $strImage = "${strOS}-base" . (defined($strArch) ? "-${strArch}" : '-' . hostArch());
my $strCopy = undef;