From bf3451dd7e8726cb7352bc257a58daef15723c8b Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Sun, 9 Jan 2022 23:33:03 +0100 Subject: [PATCH] Replace `arm64` for `aarch64` in `::apt::source` --- manifests/source.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/manifests/source.pp b/manifests/source.pp index 4e14d8a..be5b1c4 100644 --- a/manifests/source.pp +++ b/manifests/source.pp @@ -125,11 +125,17 @@ define apt::source( $header = epp('apt/_header.epp') + if $architecture { + $_architecture = regsubst($architecture, '\baarch64\b', 'arm64') + } else { + $_architecture = undef + } + $sourcelist = epp('apt/source.list.epp', { 'comment' => $comment, 'includes' => $includes, 'options' => delete_undef_values({ - 'arch' => $architecture, + 'arch' => $_architecture, 'trusted' => $allow_unsigned ? {true => "yes", false => undef}, 'signed-by' => $keyring, }), -- 2.32.3