From d8903745e6fe1804033043442ffc4c069f8a78cb Mon Sep 17 00:00:00 2001 From: jpawlowski Date: Sat, 30 Mar 2019 00:36:05 +0000 Subject: [PATCH] 98_Installer: fix detail card with missing/outdated pkgs git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@19067 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/98_Installer.pm | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/FHEM/98_Installer.pm b/FHEM/98_Installer.pm index 2b8850bcb..7b1eddd58 100644 --- a/FHEM/98_Installer.pm +++ b/FHEM/98_Installer.pm @@ -2756,12 +2756,24 @@ m/^([^<>\n\r]+?)(?:\s+(\(last release only\)))?(?:\s+(?:<(.*)>))?$/ if ( $html && $installed eq 'included' ); - if ($html) { - $installed = $colorGreen . $installed . $colorClose - if ( $installed eq 'installed' ); - $installed = $colorRed . uc($installed) . $colorClose - if ( $installed eq 'missing' - || $installed eq 'outdated' ); + if ( + $mAttr ne 'required' + && ( $installed eq 'missing' + || $installed eq 'outdated' ) + ) + { + $installed = ''; + + } + elsif ($html) { + if ( $installed eq 'installed' ) { + $installed = $colorGreen . $installed . $colorClose; + } + elsif ($installed eq 'missing' + || $installed eq 'outdated' ) + { + $installed = $colorRed . uc($installed) . $colorClose; + } } $l .=