Fixes #1375, will check for new and outdated packages when running. (#3020)

pull/18777/head
shane-walker 8 years ago committed by Matt Clay
parent eedca027ee
commit f108f8ef72

@ -252,7 +252,10 @@ def main():
elif state == 'latest':
installed, missing = npm.list()
outdated = npm.list_outdated()
if len(missing) or len(outdated):
if len(missing):
changed = True
npm.install()
if len(outdated):
changed = True
npm.update()
else: #absent

Loading…
Cancel
Save