Preserve backwards compatibility
[puppet-modules/puppetlabs-apt.git] / manifests / init.pp
index 53e25dca0ec26363a300aca2ef9bf9d10467cded..00025893689835f8b1eef17f7202d65327579fda 100644 (file)
@@ -33,10 +33,6 @@ class apt(
 
   validate_bool($purge_sources_list, $purge_sources_list_d)
 
-  if ! defined(Package['python-software-properties']) {
-    package { 'python-software-properties': }
-  }
-
   $sources_list_content = $purge_sources_list ? {
     false => undef,
     true  => "# Repos managed by puppet.\n",
@@ -98,4 +94,9 @@ class apt(
       notify  => Exec['apt_update'],
     }
   }
+
+  # Need anchor to provide containment for dependencies.
+  anchor { "apt::update":
+    require => Class['apt::update'],
+  }
 }