diff options
-rw-r--r-- | manifests/init.pp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 4f5dd25..16593c7 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -99,15 +99,15 @@ class apt( package { 'debian-backports-keyring': ensure => absent } if $use_backports { - if ($release != "testing" and $release != "unstable" and $release != "experimental") { + if (${::debian_release} != "testing" and ${::debian_release} != "unstable" and ${::debian_release} != "experimental") { apt::sources_list { - "${codename}-backports": - content => "deb $backports_url ${codename}-backports ${apt::real_repos}", + 'backports': + content => "deb $backports_url ${::debian_codename}-backports ${apt::real_repos}", } if $include_src { apt::sources_list { - "${codename}-backports-src": - content => "deb-src $backports_url ${codename}-backports ${apt::real_repos}", + 'backports-src': + content => "deb-src $backports_url ${::debian_codename}-backports ${apt::real_repos}", } } } |