From 12548bae3d8feecce6a322162d91b827289ae824 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 5 Dec 2015 17:52:43 -0400 Subject: UncheckedProperty for cmdProperty et al * Properties that run an arbitrary command, such as cmdProperty and scriptProperty are converted to use UncheckedProperty, since they cannot tell on their own if the command truely made a change or not. (API Change) Transition guide: - When GHC complains about an UncheckedProperty, add: `assume` MadeChange - Since these properties used to always return MadeChange, that change is always safe to make. - Or, if you know that the command should modifiy a file, use: `changesFile` filename * A few properties have had their Result improved, for example Apt.buldDep and Apt.autoRemove now check if a change was made or not. --- debian/changelog | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'debian/changelog') diff --git a/debian/changelog b/debian/changelog index 2290ccc5..1da30f22 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,14 +1,27 @@ -propellor (2.14.1) UNRELEASED; urgency=medium +propellor (2.15.0) UNRELEASED; urgency=medium + * Added UncheckedProperty type, along with unchecked to indicate a + Property needs its result checked, and checkResult and changesFile + to check for changes. + * Properties that run an arbitrary command, such as cmdProperty + and scriptProperty are converted to use UncheckedProperty, since + they cannot tell on their own if the command truely made a change or not. + (API Change) + Transition guide: + - When GHC complains about an UncheckedProperty, add: + `assume` MadeChange + - Since these properties used to always return MadeChange, that + change is always safe to make. + - Or, if you know that the command should modifiy a file, use: + `changesFile` filename + * A few properties have had their Result improved, for example + Apt.buldDep and Apt.autoRemove now check if a change was made or not. * User.hasDesktopGroups changed to avoid trying to add the user to groups that don't exist. * Added Postfix.saslPasswdSet. * Added Propellor.Property.Locale. Thanks, Sean Whitton. * Added Propellor.Property.Fail2Ban. - * Added UncheckedProperty type, along with unchecked to indicate a - Property needs its result checked, and checkResult and changesFile - to check for changes. -- Joey Hess Tue, 24 Nov 2015 17:06:12 -0400 -- cgit v1.2.3