diff options
author | Rebecca Turner <me@re-becca.org> | 2015-04-27 10:13:49 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2015-06-26 03:26:56 +0300 |
commit | 2ec4fef126ce0c7a6c01aa99a2644966a4dc0c27 (patch) | |
tree | bd64a284bf48e2c6b79c79f7b2830cdbf3e80460 /lib/dedupe.js | |
parent | 1f1d8e7f508f2c3ceda9d9aa21e3838e8925a6a0 (diff) |
Add pre-installation permissions checking
Diffstat (limited to 'lib/dedupe.js')
-rw-r--r-- | lib/dedupe.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dedupe.js b/lib/dedupe.js index d2fe12d6c..cfec9e1b4 100644 --- a/lib/dedupe.js +++ b/lib/dedupe.js @@ -10,6 +10,7 @@ var npm = require('./npm.js') var Installer = require('./install.js').Installer var findRequirement = require('./install/deps.js').findRequirement var earliestInstallable = require('./install/deps.js').earliestInstallable +var checkPermissions = require('./install/check-permissions.js') var decomposeActions = require('./install/decompose-actions.js') var loadExtraneous = require('./install/deps.js').loadExtraneous var filterInvalidActions = require('./install/filter-invalid-actions.js') @@ -70,6 +71,7 @@ Deduper.prototype.generateActionsToTake = function (cb) { next() }], [filterInvalidActions, this.where, this.differences], + [checkPermissions, this.differences], [decomposeActions, this.differences, this.todo] ], cb) } |