fix version-check of composer.json (was not considering packaging)

This commit is contained in:
ralf 2024-11-11 10:53:17 +01:00
parent 968b2ab219
commit 1e35e80219

View File

@ -1186,9 +1186,9 @@ function do_copy()
{
throw new Exception("Can NOT read $path to verify version!");
}
if ($json['version'] !== $config['version'])
if ($json['version'] !== $config['version'].'.'.$config['packaging'])
{
throw new Exception("Version in composer.json does not match: '$json[version]' !== '$config[version] --> aborting!");
throw new Exception("Version in composer.json does not match: '$json[version]' !== '$config[version].$config[packaging] --> aborting!");
}
try {