2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 03:44:52 +00:00

98_Installer: change version check, change maintainer

git-svn-id: https://svn.fhem.de/fhem/trunk@28622 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
LeonGaultier 2024-03-09 06:21:14 +00:00
parent 0bc1763c5e
commit c90b1b1429
2 changed files with 19 additions and 9 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- change: 98_Installer: change Maintainer, change app version check
- change: 93_DbRep: attribute allowDeletion deleted, multiCmd: use of
executeBeforeProc, executeAfterProc possible,
prepare support of MariaDB,

View File

@ -42,6 +42,8 @@ use Data::Dumper;
use Config;
use ExtUtils::Installed;
# Run before module compilation
BEGIN {
@ -82,6 +84,10 @@ BEGIN {
);
}
use constant HAS_METARequirementsRange => defined eval {
require CPAN::Meta::Requirements::Range;
};
# try to use JSON::MaybeXS wrapper
# for chance of better performance + open code
eval {
@ -5136,14 +5142,15 @@ sub LoadInstallStatusPerl(;$) {
&& $instV ne ''
&& $instV ne '0' )
{
$reqV = version->parse($reqV)->numify;
$instV = version->parse($instV)->numify;
#TODO suport for version range:
# https://metacpan.org/pod/ \
# CPAN::Meta::Spec#Version-Range
if ( $reqV > 0 && $instV < $reqV ) {
if ( !HAS_METARequirementsRange )
{
$pkgStatus{Perl}{pkgs}{$pkg}{status} = 'unknown';
next;
}
my $vRange = CPAN::Meta::Requirements::Range->with_string_requirement($reqV);
if (!defined $vRange->accepts($instV) )
{
$pkgStatus{Perl}{pkgs}{$pkg}{status} =
'outdated';
push
@ -5155,6 +5162,7 @@ sub LoadInstallStatusPerl(;$) {
'META.json'
&& !$pkgStatus{Perl}{analyzed} );
}
}
}
@ -5541,13 +5549,13 @@ sub __list_module {
"abstract": "Modul zum Update von FHEM, zur Installation von Drittanbieter FHEM Modulen und der Verwaltung von Systemvoraussetzungen"
}
},
"version": "v0.5.7",
"version": "v0.6.0",
"release_status": "stable",
"author": [
"Julian Pawlowski <julian.pawlowski@gmail.com>"
],
"x_fhem_maintainer": [
"loredo"
"coolTux"
],
"x_fhem_maintainer_github": [
"jpawlowski"
@ -5560,6 +5568,7 @@ sub __list_module {
"prereqs": {
"runtime": {
"requires": {
"CPAN::Meta::Requirements::Range": "2.143",
"Data::Dumper": 0,
"Encode": 0,
"FHEM": 5.00918623,