From 276865511940736f211645c2e4ea05591b592cce Mon Sep 17 00:00:00 2001 From: Joey Baker Date: Fri, 7 Feb 2014 15:41:21 -0800 Subject: [PATCH] NPM install latest made more effecient `npm install` is smart enough to only update updated modules. Checking for `outdated` and running `update` repeats the same process 2x. --- packaging/npm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packaging/npm b/packaging/npm index 3a4cd13f5d7..19825502589 100644 --- a/packaging/npm +++ b/packaging/npm @@ -209,12 +209,7 @@ def main(): changed = True npm.install() elif state == 'latest': - installed, missing = npm.list() - outdated = npm.list_outdated() - if len(missing) or len(outdated): - changed = True - npm.install() - npm.update() + npm.install() else: #absent installed, missing = npm.list() if name in installed: