From: Daniel Paulus Date: Fri, 2 May 2014 15:56:06 +0000 (+0200) Subject: Do not add bogus line to apt preference file on Debian Wheezy X-Git-Tag: 1.5.0~9^2~6 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=d3d6fde6e7aee520c8b659a641fdf50dcd5e20f4;p=puppet-modules%2Fpuppetlabs-apt.git Do not add bogus line to apt preference file on Debian Wheezy --- 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 {