Commit 5655ffa8 by Joey Baker

outdated needed to see set `changed`

parent 242bfd8c
...@@ -209,7 +209,11 @@ def main(): ...@@ -209,7 +209,11 @@ def main():
changed = True changed = True
npm.install() npm.install()
elif state == 'latest': 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 else: #absent
installed, missing = npm.list() installed, missing = npm.list()
if name in installed: if name in installed:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment