2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2024-11-22 02:59:49 +00:00

FHEM/lib/openzwave_deviceconfig.xml.gz: Fix 14 bogus <Product> entries (Forum #134514)

git-svn-id: https://svn.fhem.de/fhem/trunk@28079 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2023-10-21 10:50:59 +00:00
parent c49845135b
commit f70d517bdd
2 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@ foreach my $file (`find $ARGV[0] -name \\*.xml`) {
while(my $l = <FH>) {
next if($l =~ m/^<\?xml/);
chomp($l);
if($l =~ m/<Product.*/ && $l !~ m/xmlns/ && $l !~ m/sourceFile/) { #128444
$l .= <FH>;
chomp($l);
}
$l =~ s/<!--.*-->//g;
$l =~ s/^(.*)<Product.*xmlns.*/$1<Product sourceFile="$name">/;
$l =~ s/\r//g;