2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

fhem.pl: add configDb patch for version (betateilchen, forum #22690)

git-svn-id: https://svn.fhem.de/fhem/trunk@5658 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-04-26 06:59:30 +00:00
parent a306e18676
commit 2c38b10177

View File

@ -2430,7 +2430,12 @@ CommandVersion($$)
Log 4, "Looking for SVN Id in module $m"; Log 4, "Looking for SVN Id in module $m";
my $fn = "$attr{global}{modpath}/FHEM/".$modules{$m}{ORDER}."_$m.pm"; my $fn = "$attr{global}{modpath}/FHEM/".$modules{$m}{ORDER}."_$m.pm";
if(!open(FH, $fn)) { if(!open(FH, $fn)) {
push @ret, "$fn: $!"; my $ret = "$fn: $!";
if(configDBUsed()){
Log 4, "Looking for module $m in configDB to find SVN Id";
$ret = cfgDB_Fileversion($fn,$ret);
}
push @ret, $ret;
} else { } else {
push @ret, map { chomp; $_ } grep(/# \$Id:/, <FH>); push @ret, map { chomp; $_ } grep(/# \$Id:/, <FH>);
} }