mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
fix broken dependencies management
This commit is contained in:
parent
11403084e7
commit
ee6f006b79
5 changed files with 10 additions and 11 deletions
|
|
@ -108,17 +108,15 @@ static bool resolve_dependencies(
|
|||
continue;
|
||||
}
|
||||
|
||||
auto dep_pack = found -> second;
|
||||
auto dep_pack = found->second;
|
||||
|
||||
if (Version::matchesPattern(dep.version) && Version::matchesPattern(dep_pack.version)
|
||||
&& Version(dep_pack.version)
|
||||
.processOperator(dep.op, Version(dep.version))
|
||||
) {
|
||||
// dependency pack version meets the required one
|
||||
continue;
|
||||
} else if (dep.version == "*" || dep.version == dep_pack.version){
|
||||
// fallback: dependency pack version also meets required one
|
||||
continue;
|
||||
} else {
|
||||
throw contentpack_error(
|
||||
dep.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue