mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Allow constraint solver to work with versions of type "1.2.3+local"
Also prevent it from infinite looping
This commit is contained in:
@@ -188,6 +188,7 @@ ConstraintSolver.PackagesResolver.prototype._getResolverOptions =
|
||||
var self = this;
|
||||
|
||||
var semverToNum = function (version) {
|
||||
version = version.split("+")[0];
|
||||
var v = _.map(version.split('.'), function (x) {
|
||||
return parseInt(x);
|
||||
});
|
||||
|
||||
@@ -295,7 +295,7 @@ ConstraintSolver.Resolver.prototype._propagateExactTransDeps =
|
||||
|
||||
// Since exact transitive deps are put into choices, there is no need to
|
||||
// keep them in dependencies.
|
||||
_.each(newChoices, function (uv) {
|
||||
_.each(choices, function (uv) {
|
||||
dependencies = dependencies.remove(uv.name);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user