Last active
March 2, 2017 16:35
-
-
Save hlindberg/0171d118a3d20e1e8c9304b4ae04deb7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%- | |
$pin = "release a=${name}" # default value | |
if $pin_release.length > 0 | |
$options = [ | |
if $release.length > 0 { "a=${release}" }, | |
if $codename.length > 0 { "n=${codename}" }, | |
if $release_version.length > 0 { "v=${release_version}"}, | |
if $component.length > 0 { "c=${component}" }, | |
if $originator.length > 0 { "o=${originator}" }, | |
if $label.length > 0 { "l=${label}" }, | |
].filter |$x| { $x != undef } | |
$pin = "release #{options.join(', ')}" | |
elsif $version.length > 0 | |
$pin = "version #{$version}" | |
elsif $origin.length > 0 | |
$pin = "origin #{$origin}" | |
end | |
-%> | |
Explanation: <%= $_explanation %> | |
Package: <%= $packages_string %> | |
Pin: <%= $pin %> | |
Pin-Priority: <%= $priority %> |
Author
hlindberg
commented
Mar 2, 2017
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment