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 786702e811
commit 6b4bba2feb

View File

@@ -2430,7 +2430,12 @@ CommandVersion($$)
Log 4, "Looking for SVN Id in module $m";
my $fn = "$attr{global}{modpath}/FHEM/".$modules{$m}{ORDER}."_$m.pm";
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 {
push @ret, map { chomp; $_ } grep(/# \$Id:/, <FH>);
}