[OE-core] [OE-CORE][morty]NPM and BB_NO_NETWORK

Davis, Michael michael.davis at essvote.com
Wed May 10 19:47:23 UTC 2017


I am having an issue with npm sources and BB_GENERATE_MIRROR_TARBALLS.
The tarballs generate fine, but then when you try to use them with prefetch only or no network the system won't find them.
It then tries to download them.   Tried it both on morty and master with the same issue.

This is my first real python experience, but I think I got it tracked down to uri_replace.

Example debug line of a working git replace vs a non working npm one.

DEBUG: For url ['git', 'git.yoctoproject.org', '/psplash', '', '', OrderedDict()] comparing ['git', '.*', '/.*', '', '', OrderedDict()] to ['file', '', '/build/downloads/', '', '', OrderedDict()]
DEBUG: For url git://git.yoctoproject.org/psplash returning file:///build/downloads/git2_git.yoctoproject.org.psplash.tar.gz<file:///\\build\downloads\git2_git.yoctoproject.org.psplash.tar.gz>

DEBUG: For url ['npm', 'registry.npmjs.org', '', '', '', OrderedDict([('name', 'nopt'), ('version', '3.0.6'), ('subdir', 'node_modules/nopt')])] comparing ['npm', '.*', '/.*', '', '', OrderedDict()] to ['file', '', '/build/downloads/', '', '', OrderedDict()]

Don't know if maybe the OrderedDict vs the path is causing the issue or not.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170510/1fa8684f/attachment-0002.html>


More information about the Openembedded-core mailing list