Fix install not resolving with the installed object.

This commit is contained in:
André Cruz
2013-05-30 22:17:38 +01:00
parent a27ad2e353
commit 4064fedf55
2 changed files with 4 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ Project.prototype.install = function (endpoints, options) {
// Bootstrap the process
return that._bootstrap(targets, resolved, installed)
// Handle save and saveDev options
.then(function () {
.then(function (installed) {
var jsonKey;
if (!options.save && !options.saveDev) {
@@ -89,7 +89,9 @@ Project.prototype.install = function (endpoints, options) {
});
return that._saveJson()
.progress(function (notification) {
.then(function () {
return installed;
}, null, function (notification) {
return notification;
});
});

View File

@@ -73,7 +73,6 @@ StandardRenderer.prototype.updateAvailable = function (update) {
// -------------------------
StandardRenderer.prototype._genericNotification = function (notification) {
var stream;
var str;