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

reviewable/pr18780/r1
shane-walker 8 years ago committed by René Moser
parent 7df7b52a5e
commit 5e174c6e50

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

Loading…
Cancel
Save