From 446b6214a094ad05c535ce2daef9c70e8b8849e7 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Mon, 19 Jun 2017 09:02:19 +0000 Subject: [PATCH] 98_update.pm: exclude_from_update can check to source too (Forum #73275) git-svn-id: https://svn.fhem.de/fhem/trunk@14540 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/98_update.pm | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 176bf3130..4425a2970 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. + - featere: exclude_from_update can check the source too (Forum #73275) - change: 93_DbRep: V5.2.0, preparation for UTF-8 support by DbLog - bugfix: 36_Vallox: Changed read. Added attributes. Changed DeviceID. - bugfix: MQTT: undef patch diff --git a/fhem/FHEM/98_update.pm b/fhem/FHEM/98_update.pm index 197ec3072..1710925fa 100644 --- a/fhem/FHEM/98_update.pm +++ b/fhem/FHEM/98_update.pm @@ -334,7 +334,7 @@ doUpdate($$$$) my $isExcl; foreach my $ex (@excl) { - $isExcl = 1 if($fName =~ m/$ex/); + $isExcl = 1 if($fName =~ m/$ex/ || "$src:$fName" =~ m/$ex/); } my $fPath = "$root/$fName"; $fPath = $0 if($fPath =~ m/$mainPgm/); @@ -733,6 +733,9 @@ upd_initRestoreDirs($)