2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

SMUtils.pm: another fix version 1.27.0

git-svn-id: https://svn.fhem.de/fhem/trunk@28240 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2023-12-03 18:38:25 +00:00
parent 88f5f2b01e
commit b4f5aebc0f

View File

@ -2046,12 +2046,21 @@ sub checkModVer {
Log3 ($name, 4, "$name - got local $ctrlFileName with ".int(@locList)." entries.");
my %lh;
my $found = 0;
for my $l (@locList) {
my @l = split " ", $l, 4;
next if($l[0] ne "UPD" || $l[3] !~ /$mod/);
$lh{$l[3]}{TS} = $l[1];
$lh{$l[3]}{LEN} = $l[2];
$found = 1;
}
if (!$found) {
$msg = "The $mod file does not appear to exist in your system.";
$rec = "You should do a complete FHEM update first. Inform the Maintainer if it seems to be a permanent problem.";
return (1, 0, $msg, $rec);
}
for my $rem (@remList) {