When a package has a Grav version in its requirements, if fulfilled just go on

Do not try to install it as if it was a plugin
This commit is contained in:
Flavio Copes
2016-04-30 17:20:40 +02:00
parent a2c60f1eee
commit a9e31f45e2

View File

@@ -625,6 +625,8 @@ class GPM extends Iterator
if (version_compare($this->calculateVersionNumberFromDependencyVersion($dependencyVersionWithOperator), GRAV_VERSION) === 1) {
//Needs a Grav update first
throw new \Exception("<red>One of the packages require Grav " . $dependencies['grav'] . ". Please update Grav to the latest release.");
} else {
continue;
}
}