From 603b051f7123b358cb7f2926a9ee4c855b1f5f74 Mon Sep 17 00:00:00 2001 From: Joey Baker Date: Fri, 7 Feb 2014 15:50:17 -0800 Subject: [PATCH] outdated needed to see set `changed` --- packaging/npm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packaging/npm b/packaging/npm index 19825502589..7c03ab383d6 100644 --- a/packaging/npm +++ b/packaging/npm @@ -209,7 +209,11 @@ def main(): changed = True npm.install() elif state == 'latest': - npm.install() + installed, missing = npm.list() + outdated = npm.list_outdated() + if len(missing) or len(outdated): + changed = True + npm.install() else: #absent installed, missing = npm.list() if name in installed: