Small changes.

This commit is contained in:
André Cruz
2013-04-25 18:59:42 +01:00
parent 561a5b2b2e
commit 421dbc28bd
3 changed files with 39 additions and 21 deletions

View File

@@ -148,10 +148,11 @@ GitResolver.prototype._cleanup = function () {
};
GitResolver.prototype._savePkgMeta = function (meta) {
// Ensure that the .version is fulfilled with the resolution
// version if any
// TODO: emit a warning if the json version is different than the resolved one
// also add a test for this stuff
if (mout.object.hasOwn(meta, 'version') && meta.version !== this._resolution.version) {
// warn about mismatch version
}
// Ensure that the version is fulfilled with the resolution version
meta.version = this._resolution.version;
// Save resolution to be used in hasNew later