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

@@ -403,7 +403,7 @@ Manager.prototype._extendNotification = function (notification, decEndpoint) {
};
// Add from
notification.from = decEndpoint.name || decEndpoint.registryName;
notification.from = decEndpoint.name || (decEndpoint.registry && decEndpoint.source);
if (!notification.from && notification.data.resolver) {
notification.from = notification.data.resolver.getName();
}

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, ['#']);
});

View File

@@ -90,7 +90,7 @@ function createResolver(decEndpoint, registryClient, config) {
return function () {
return Q.nfcall(registryClient.lookup.bind(registryClient), source)
.then(function (entry) {
decEndpoint.registryName = source;
decEndpoint.registry = true;
// TODO: Handle entry.type.. for now it's only 'alias'
// When we got published packages, this needs to be adjusted
return new resolvers.GitRemote(entry.url, resOptions);