Skip to content

Commit

Permalink
Merge pull request #754 from paladox/patch-1
Browse files Browse the repository at this point in the history
Remove .length from variable $pin_release in app
  • Loading branch information
tphoney authored Jun 21, 2018
2 parents 630580d + e224cfa commit 7fc436b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions templates/pin.pref.epp
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<%- | $name, $pin_release, $release, $codename, $release_version, $component, $originator, $label, $version, $origin, $explanation, $packages_string, $priority | -%>
<%-
$pin =
if $pin_release.length > 0 {
if $pin_release != '' {
$options = [
if $release { "a=${release}" },
if $codename { "n=${codename}" },
if $release_version { "v=${release_version}"},
if $component { "c=${component}" },
if $originator { "o=${originator}" },
if $label { "l=${label}" },
if $release != '' { "a=${release}" },
if $codename != '' { "n=${codename}" },
if $release_version != '' { "v=${release_version}"},
if $component != '' { "c=${component}" },
if $originator != '' { "o=${originator}" },
if $label != '' { "l=${label}" },
].filter |$x| { $x != undef }
"release ${options.join(', ')}" }

Expand Down

0 comments on commit 7fc436b

Please sign in to comment.