summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/npm.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/npm.py b/bitbake/lib/bb/fetch2/npm.py
index 8c32f81c74..15b281fb4f 100644
--- a/bitbake/lib/bb/fetch2/npm.py
+++ b/bitbake/lib/bb/fetch2/npm.py
@@ -182,7 +182,12 @@ class Npm(FetchMethod):
182 if pkg_os: 182 if pkg_os:
183 if not isinstance(pkg_os, list): 183 if not isinstance(pkg_os, list):
184 pkg_os = [pkg_os] 184 pkg_os = [pkg_os]
185 if 'linux' not in pkg_os or '!linux' in pkg_os: 185 blacklist = False
186 for item in pkg_os:
187 if item.startswith('!'):
188 blacklist = True
189 break
190 if (not blacklist and 'linux' not in pkg_os) or '!linux' in pkg_os:
186 logger.debug(2, "Skipping %s since it's incompatible with Linux" % pkg) 191 logger.debug(2, "Skipping %s since it's incompatible with Linux" % pkg)
187 return 192 return
188 #logger.debug(2, "Output URL is %s - %s - %s" % (ud.basepath, ud.basename, ud.localfile)) 193 #logger.debug(2, "Output URL is %s - %s - %s" % (ud.basepath, ud.basename, ud.localfile))