diff --git a/CHANGED b/CHANGED index 0d68a0af0..f4526fff3 100644 --- a/CHANGED +++ b/CHANGED @@ -19,6 +19,9 @@ - change: FHEMWEB added "Associated with" to detail-screen (Uli) - change: FHEMWEB added ETag headers (Matthias) - change: FHEMWEB devStateIcon added + - change: 98_update.pm due a (probable) bug in perl, modules are no longer + loading automatically. A restart is required now! (M. Fischer) + - feature: 98_update.pm saves the statefile before an update (M. Fischer) - 2012-10-28 (5.3) - feature: added functions trim, ltrim, rtrim, UntoggleDirect, diff --git a/FHEM/98_update.pm b/FHEM/98_update.pm index ca3f5ba68..27863fb3c 100644 --- a/FHEM/98_update.pm +++ b/FHEM/98_update.pm @@ -168,6 +168,17 @@ update_DoUpdate(@) $ret = $checkUpdates; } + # save statefile + $ret .= "\nSaving statefile: "; + my $cmdret = WriteStatefile(); + if (!$cmdret) { + Log 1, "update saving statefile"; + $ret .= "done\n\n"; + } else { + Log 1, "update statefile: $cmdret"; + $ret .= "Something went wrong with statefile:\n$cmdret\n\n"; + } + # do a backup first my $doBackup = (!defined($attr{global}{backup_before_update}) ? 1 : $attr{global}{backup_before_update});