98_update.pm: exclude now accepts comma too (Forum #135958)

git-svn-id: https://svn.fhem.de/fhem/trunk@28211 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2023-11-26 10:08:09 +00:00
parent 99882596b6
commit 059425b6e9

View File

@@ -312,7 +312,7 @@ doUpdate($$$$)
$canJoin = 1; $canJoin = 1;
} }
my @excl = split(" ", AttrVal("global", "exclude_from_update", "")); my @excl = split(/[\s,]+/, AttrVal("global", "exclude_from_update", ""));
my $noSzCheck = AttrVal("global", "updateNoFileCheck", configDBUsed()); my $noSzCheck = AttrVal("global", "updateNoFileCheck", configDBUsed());
my $hideExcl = AttrVal("global", "hideExcludedUpdates", 0); #Forum #124670 my $hideExcl = AttrVal("global", "hideExcludedUpdates", 0); #Forum #124670
@@ -672,10 +672,11 @@ upd_writeFile($$$$)
<a id="update-attr-exclude_from_update"></a> <a id="update-attr-exclude_from_update"></a>
<li>exclude_from_update<br> <li>exclude_from_update<br>
Contains a space separated list of fileNames (regexps) which will be Contains a space or comma separated list of fileNames (regexps) which
excluded by an update. The special value commandref will disable calling will be excluded by an update. The special value commandref will
commandref_join at the end, i.e commandref.html will be out of date. disable calling commandref_join at the end, i.e commandref.html will be
The module-only documentation is not affected and is up-to-date.<br> out of date. The module-only documentation is not affected and is
up-to-date.<br>
Example:<br> Example:<br>
<ul> <ul>
attr global exclude_from_update 21_OWTEMP.pm FS20.off.png attr global exclude_from_update 21_OWTEMP.pm FS20.off.png
@@ -782,11 +783,12 @@ upd_writeFile($$$$)
<a id="update-attr-exclude_from_update"></a> <a id="update-attr-exclude_from_update"></a>
<li>exclude_from_update<br> <li>exclude_from_update<br>
Enth&auml;lt eine Liste durch Leerzeichen getrennter Dateinamen Enth&auml;lt eine durch Leerzeichen oder Komma getrennte Liste von
(Regexp), welche nicht beim update ber&uuml;cksichtigt werden.<br> Dateinamen (Regexp), welche beim update nicht ber&uuml;cksichtigt
Falls der Wert commandref enth&auml;lt, dann wird commandref_join.pl werden.<br> Falls der Wert commandref enth&auml;lt, dann wird
nach dem update nicht aufgerufen, d.h. die Gesamtdokumentation ist commandref_join.pl nach dem update nicht aufgerufen, d.h. die
nicht mehr aktuell. Die Moduldokumentation bleibt weiterhin aktuell. Gesamtdokumentation ist nicht mehr aktuell. Die Moduldokumentation
bleibt weiterhin aktuell.
<br> <br>
Beispiel:<br> Beispiel:<br>
<ul> <ul>