From d3d6fde6e7aee520c8b659a641fdf50dcd5e20f4 Mon Sep 17 00:00:00 2001 From: Daniel Paulus Date: Fri, 2 May 2014 17:56:06 +0200 Subject: [PATCH] Do not add bogus line to apt preference file on Debian Wheezy --- manifests/init.pp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 1c3f902..a55d584 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -54,11 +54,16 @@ class apt( true => "# Repos managed by puppet.\n", } - $preferences_content = $purge_preferences ? { - false => undef, - true => "Explanation: Preferences managed by Puppet\n + if $lsbdistcodename == 'wheezy' { + $preferences_content = undef + } + else { + $preferences_content = $purge_preferences ? { + false => undef, + true => "Explanation: Preferences managed by Puppet\n Explanation: We need a bogus package line because of Debian Bug #732746\n Package: bogus-package\n", + } } if $always_apt_update == true { -- 2.45.2