Simplify conditional expressions

This commit is contained in:
Jerome Charaoui 2015-10-09 14:08:46 -04:00 committed by Gabriel Filion
parent f492e5840b
commit 4d3b720308

View file

@ -98,8 +98,7 @@ class apt(
# backports uses the normal archive key now
package { 'debian-backports-keyring': ensure => absent }
if $use_backports {
if (${::debian_release} != "testing" and ${::debian_release} != "unstable" and ${::debian_release} != "experimental") {
if ($use_backports and !($::debian_release in ['testing', 'unstable', 'experimental'])) {
apt::sources_list {
'backports':
content => "deb $backports_url ${::debian_codename}-backports ${apt::real_repos}",
@ -111,7 +110,6 @@ class apt(
}
}
}
}
include common::moduledir
common::module_dir { 'apt': }