aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2012-06-18 22:57:13 +0200
committerintrigeri <intrigeri@boum.org>2012-06-18 22:57:13 +0200
commit02bd3269948f1a3c5a586e581a7fec22da69a2cc (patch)
treeb57cec1e1efee6035222dc21833bc281d7eb919b /templates
parent2e4d22ddd948b6d6f1532654e3dea53fa4b9f7d1 (diff)
downloadpuppet-apt-02bd3269948f1a3c5a586e581a7fec22da69a2cc.tar.gz
puppet-apt-02bd3269948f1a3c5a586e581a7fec22da69a2cc.tar.bz2
Make apt::preferences_snippet support Puppet < 2.7 again, when the 'package' parameter is not set.
Details: https://labs.riseup.net/code/issues/3467 https://labs.riseup.net/code/issues/3468
Diffstat (limited to 'templates')
-rw-r--r--templates/preferences_snippet.erb2
-rw-r--r--templates/preferences_snippet_release.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/preferences_snippet.erb b/templates/preferences_snippet.erb
index fd15ce6..b7acaab 100644
--- a/templates/preferences_snippet.erb
+++ b/templates/preferences_snippet.erb
@@ -1,4 +1,4 @@
-Package: <%= package %>
+Package: <%= real_package %>
Pin: <%= pin %>
Pin-Priority: <%= priority %>
diff --git a/templates/preferences_snippet_release.erb b/templates/preferences_snippet_release.erb
index 0c4e136..845d23f 100644
--- a/templates/preferences_snippet_release.erb
+++ b/templates/preferences_snippet_release.erb
@@ -1,4 +1,4 @@
-Package: <%= package %>
+Package: <%= real_package %>
Pin: release a=<%= release %>
Pin-Priority: <%= priority %>