From d47876d3cbcd19db82daa01c1a03341477894933 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Sun, 20 Dec 2015 13:00:49 +0000 Subject: [PATCH] 98_update.pm: ignore exclude_from_update if a single argument is specified (Foru m #45738) git-svn-id: https://svn.fhem.de/fhem/trunk@10214 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_update.pm | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/fhem/FHEM/98_update.pm b/fhem/FHEM/98_update.pm index 6fac2bf37..91a096306 100644 --- a/fhem/FHEM/98_update.pm +++ b/fhem/FHEM/98_update.pm @@ -190,20 +190,15 @@ doUpdate($$) return 1; } - my $isExcl; - foreach my $ex (@excl) { - $isExcl = 1 if($fName =~ m/$ex/); - } - if($isSingle) { next if($fName !~ m/$arg/); - if($isExcl) { - uLog 1, "update: skipping $fName, matches exclude_from_update"; - $nSkipped++; - next; - } } else { + + my $isExcl; + foreach my $ex (@excl) { + $isExcl = 1 if($fName =~ m/$ex/); + } my $fPath = "$root/$fName"; $fPath = $0 if($fPath =~ m/$mainPgm/); my $fileOk = ($lh{$fName} &&