Merge pull request #502 from mhaskel/merge_2.0.x_to_master
[puppet-modules/puppetlabs-apt.git] / manifests / ppa.pp
index 5d4c8903d5c6d9968c64e255f63cc61466554326..808c9751a042b32196dfc8c918216699f5085748 100644 (file)
@@ -10,8 +10,8 @@ define apt::ppa(
     fail('lsbdistcodename fact not available: release parameter required')
   }
 
-  if $::apt::distid != 'ubuntu' {
-    fail('apt::ppa is currently supported on Ubuntu and LinuxMint only.')
+  if $::apt::xfacts['lsbdistid'] == 'Debian' {
+    fail('apt::ppa is not currently supported on Debian.')
   }
 
   $filename_without_slashes = regsubst($name, '/', '-', 'G')