add .pref extension, which according to apt_preferences(5) may or may not be present...
[puppet-modules/puppetlabs-apt.git] / manifests / ppa.pp
index 578c81df7123c3f0171fddc6d222a410190a9c8d..64c65bbd09e41d595b902135d6fd5222138fb114 100644 (file)
@@ -3,9 +3,6 @@
 define apt::ppa(
   $release = $::lsbdistcodename
 ) {
-
-  Class['apt'] -> Apt::Ppa[$title]
-
   include apt::params
   include apt::update
 
@@ -26,7 +23,8 @@ define apt::ppa(
   exec { "add-apt-repository-${name}":
     command => "/usr/bin/add-apt-repository ${name}",
     creates => "${sources_list_d}/${sources_list_d_filename}",
-    require => Package['python-software-properties'],
+    require => [ File[$sources_list_d],
+                 Package['python-software-properties'] ],
     notify  => Exec['apt_update'],
   }