Skip to content

Commit 90a4ffe

Browse files
authored
Merge pull request #1090 from tuxmea/fix_pin_template
2 parents 790df53 + 355abd2 commit 90a4ffe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

templates/pin.pref.epp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
$pin =
44
if $pin_release != '' {
55
$options = [
6-
if $release != '' { "a=${release}" },
7-
if $codename != '' { "n=${codename}" },
8-
if $release_version != '' { "v=${release_version}"},
9-
if $component != '' { "c=${component}" },
10-
if $originator != '' { "o=${originator}" },
11-
if $label != '' { "l=${label}" },
6+
unless $release =~ Undef { "a=${release}" },
7+
unless $codename =~ Undef { "n=${codename}" },
8+
unless $release_version =~ Undef { "v=${release_version}"},
9+
unless $component =~ Undef { "c=${component}" },
10+
unless $originator =~ Undef { "o=${originator}" },
11+
unless $label =~ Undef { "l=${label}" },
1212
].filter |$x| { $x != undef }
1313
"release ${options.join(', ')}" }
1414

0 commit comments

Comments
 (0)