2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-27 10:37:13 +00:00

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
This commit is contained in:
rudolfkoenig 2015-12-20 13:00:49 +00:00
parent 2bd421cc1a
commit 249488a9fb

View File

@ -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} &&