From f109dc501475132f119c44f8bf7b8a5f6710cea1 Mon Sep 17 00:00:00 2001 From: Hagai Date: Sun, 9 Mar 2014 12:48:44 +0200 Subject: [PATCH] Add a package to missing list if npm list reported it as invalid --- packaging/npm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packaging/npm b/packaging/npm index 62179c373aa..8bfb21afde0 100644 --- a/packaging/npm +++ b/packaging/npm @@ -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