Skip to content

Commit bf3451d

Browse files
authored
Replace arm64 for aarch64 in ::apt::source
1 parent 6fa24e6 commit bf3451d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

manifests/source.pp

+7-1
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,17 @@
125125

126126
$header = epp('apt/_header.epp')
127127

128+
if $architecture {
129+
$_architecture = regsubst($architecture, '\baarch64\b', 'arm64')
130+
} else {
131+
$_architecture = undef
132+
}
133+
128134
$sourcelist = epp('apt/source.list.epp', {
129135
'comment' => $comment,
130136
'includes' => $includes,
131137
'options' => delete_undef_values({
132-
'arch' => $architecture,
138+
'arch' => $_architecture,
133139
'trusted' => $allow_unsigned ? {true => "yes", false => undef},
134140
'signed-by' => $keyring,
135141
}),

0 commit comments

Comments
 (0)