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

reviewable/pr18780/r1
Hagai 11 years ago
parent 87d4bd771f
commit f109dc5014

@ -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

Loading…
Cancel
Save