diff options
author | intrigeri <intrigeri@boum.org> | 2016-06-29 17:54:16 +0000 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2016-06-29 17:54:16 +0000 |
commit | 89a024678e39fec8a5c05371bcceaece605fbd88 (patch) | |
tree | f26e56a761273237c411b91eb8bd7100d652858a | |
parent | 2ab9739d5a2595d2f72e6deb246778d619819270 (diff) |
apt::reboot_required_notify::jessie: explicitly check that $apt::use_backports is true when running Jessie.
Otherwise, it would fail anyway when trying to install reboot-notifier,
but in a way less user-friendly.
Thanks to lavamind for the suggestion!
-rw-r--r-- | manifests/reboot_required_notify/jessie.pp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/manifests/reboot_required_notify/jessie.pp b/manifests/reboot_required_notify/jessie.pp index 9b5a0c0..2de6b62 100644 --- a/manifests/reboot_required_notify/jessie.pp +++ b/manifests/reboot_required_notify/jessie.pp @@ -1,5 +1,9 @@ class apt::reboot_required_notify::jessie ($ensure = present) { + if $::operatingsystemmajrelease == 8 and ! $::apt::use_backports { + fail('apt::reboot_required_notify requires $apt::use_backports on Jessie') + } + $pinning_ensure = $::operatingsystemmajrelease ? { 8 => present, default => absent, |