Do not add bogus line to apt preference file on Debian Wheezy
[puppet-modules/puppetlabs-apt.git] / manifests / init.pp
index 1c3f902ada5c9f9c953e908581c31a5483113959..a55d584a1324469fec3d33ac6cc6619262f98f3d 100644 (file)
@@ -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 {