mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
Added prune command, closes #463.
This commit is contained in:
@@ -193,6 +193,7 @@ Project.prototype.uninstall = function (names, options) {
|
||||
return Q.reject(createError('Already working', 'EWORKING'));
|
||||
}
|
||||
|
||||
options = options || {};
|
||||
this._working = true;
|
||||
|
||||
// Analyse the project
|
||||
@@ -597,9 +598,7 @@ Project.prototype._readLinks = function () {
|
||||
linked: true
|
||||
};
|
||||
}
|
||||
})
|
||||
// Mute error
|
||||
.fail(function () {});
|
||||
});
|
||||
});
|
||||
|
||||
// Wait until all links have been read
|
||||
|
||||
@@ -56,8 +56,8 @@ GitRemoteResolver.prototype._checkout = function () {
|
||||
promise.progress(function (data) {
|
||||
var lines = data.split(/\r?\n/);
|
||||
|
||||
lines.forEach(function (data) {
|
||||
if (/\d{1,3}\%/.test(data)) {
|
||||
lines.forEach(function (line) {
|
||||
if (/\d{1,3}\%/.test(line)) {
|
||||
that._logger.info('progress', data);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user