mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +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:
parent
a306e18676
commit
2c38b10177
@ -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>);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user