mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
42_AptToDate: fix state reading after getDistribution
git-svn-id: https://svn.fhem.de/fhem/trunk@18012 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bc204f967d
commit
e333992b67
@ -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
|
||||
|
@ -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'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user