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:
parent
c49845135b
commit
f70d517bdd
Binary file not shown.
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user