From e333992b67315920caf17c7e8a1a98f19c923b1f Mon Sep 17 00:00:00 2001 From: LeonGaultier Date: Thu, 20 Dec 2018 10:53:59 +0000 Subject: [PATCH] 42_AptToDate: fix state reading after getDistribution git-svn-id: https://svn.fhem.de/fhem/trunk@18012 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/42_AptToDate.pm | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 873688259..2acc0235b 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 42_AptToDate: fix state reading after getDistribution - feature: 49_SSCam: tooltip hints in camera devices, commandref revised - feature: 36_WMBUS: new attribute ignoreUnknownDataBlocks - feature: 49_SSCam: V8.0.0, new type "hls" of streaming devices, hls diff --git a/fhem/FHEM/42_AptToDate.pm b/fhem/FHEM/42_AptToDate.pm index 7d1a07087..c9b3c88f8 100644 --- a/fhem/FHEM/42_AptToDate.pm +++ b/fhem/FHEM/42_AptToDate.pm @@ -35,7 +35,7 @@ package main; use strict; use warnings; -my $version = "1.4.1"; +my $version = "1.4.2"; sub AptToDate_Initialize($) { @@ -872,7 +872,8 @@ sub WriteReadings($$) { readingsBulkUpdate( $hash, 'state', ( - scalar keys %{ $decode_json->{packages} } > 0 + (scalar keys %{ $decode_json->{packages} } > 0 + or scalar keys%{ $hash->{".fhem"}{aptget}{packages} } > 0) ? 'system updates available' : 'system is up to date' )