From 5655ffa8bf2334752fbf936ecd66e2258aaec8b9 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` --- library/packaging/npm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/packaging/npm b/library/packaging/npm index 1982550258..7c03ab383d 100644 --- a/library/packaging/npm +++ b/library/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: