Meta.pm: move some variables

git-svn-id: https://svn.fhem.de/fhem/trunk@18849 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
loredo
2019-03-10 14:34:03 +00:00
parent 870c9dc1b6
commit f14b48bf9f
2 changed files with 18 additions and 14 deletions

View File

@@ -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 );

View File

@@ -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($$;$) {