Change registryName to registry.

This commit is contained in:
André Cruz
2013-05-29 11:44:36 +01:00
parent 70a4ab863d
commit 3cf56ff7d5
3 changed files with 3 additions and 3 deletions

View File

@@ -81,7 +81,7 @@ Project.prototype.install = function (endpoints, options) {
that._json[key] = that._json[key] || {};
mout.object.forOwn(targets, function (decEndpoint) {
var source = decEndpoint.source === decEndpoint.registryName ? '' : decEndpoint.source;
var source = decEndpoint.registry ? '' : decEndpoint.source;
var target = decEndpoint.pkgMeta.version ? '~' + decEndpoint.pkgMeta.version : decEndpoint.target;
that._json[key][decEndpoint.name] = mout.string.ltrim(source + '#' + target, ['#']);
});