Add a package to missing list if npm list reported it as invalid

This commit is contained in:
Hagai 2014-03-09 12:48:44 +02:00
parent 04a6dc6d12
commit 748e8a7740

View file

@ -142,6 +142,8 @@ class Npm(object):
for dep in data['dependencies']:
if 'missing' in data['dependencies'][dep] and data['dependencies'][dep]['missing']:
missing.append(dep)
elif 'invalid' in data['dependencies'][dep] and data['dependencies'][dep]['invalid']:
missing.append(dep)
else:
installed.append(dep)
#Named dependency not installed