diff --git a/fhem/FHEM/98_Installer.pm b/fhem/FHEM/98_Installer.pm index be46d2ff3..c91adeaf7 100644 --- a/fhem/FHEM/98_Installer.pm +++ b/fhem/FHEM/98_Installer.pm @@ -64,14 +64,6 @@ BEGIN { ); } -our $coreUpdate; -our %corePackageUpdates; -our %coreFileUpdates; - -our %moduleUpdates; -our %packageUpdates; -our %fileUpdates; - sub Define($$) { my ( $hash, $def ) = @_; my @a = split( "[ \t][ \t]*", $def ); diff --git a/fhem/FHEM/Meta.pm b/fhem/FHEM/Meta.pm index 603db460a..cbfab872e 100644 --- a/fhem/FHEM/Meta.pm +++ b/fhem/FHEM/Meta.pm @@ -37,12 +37,24 @@ return "$@" if ($@); return $ret if ($ret); use version 0.77; our $VERSION = $META{version}; -# sub import(@) { -# my $pkg = caller(0); -# -# if ( $pkg ne "main" ) { -# } -# } +our $coreUpdate; +our %corePackageUpdates; +our %coreFileUpdates; + +our %moduleUpdates; +our %packageUpdates; +our %fileUpdates; + +sub import(@) { + my $pkg = caller(0); + + # Initially load update information + # to be ready for meta analysis + __GetUpdatedata() unless ( defined($coreUpdate) ); + + if ( $pkg ne "main" ) { + } +} # Loads Metadata for single module, based on filename sub InitMod($$;$) {