Re: [OE-core] [PATCH v2] (PRE)MIRRORS: add pattern for npm:// without slash

2017-08-25 Thread Olaf Mandel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hello again, Am 25.08.2017 um 18:14 schrieb Olaf Mandel: > Am 25.08.2017 um 16:32 schrieb Leonardo Sandoval: >> instead of adding a new npm regex, not sure if below one would >> the same job > >> npm://.*(/.*)? > > No: the string is split into

Re: [OE-core] [PATCH v2] (PRE)MIRRORS: add pattern for npm:// without slash

2017-08-25 Thread Olaf Mandel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hello Leonardo, Am 25.08.2017 um 16:32 schrieb Leonardo Sandoval: > instead of adding a new npm regex, not sure if below one would the > same job > > npm://.*(/.*)? > No: the string is split into different parts before the RE is considered. So

Re: [OE-core] [PATCH v2] (PRE)MIRRORS: add pattern for npm:// without slash

2017-08-25 Thread Leonardo Sandoval
> npm://.*/.* http://sources.openembedded.org/ \n \ > +npm://.*http://sources.openembedded.org/ \n \ instead of adding a new npm regex, not sure if below one would the same job npm://.*(/.*)? -- ___ Openembedded-core mailing list

[OE-core] [PATCH v2] (PRE)MIRRORS: add pattern for npm:// without slash

2017-08-25 Thread Olaf Mandel
For URIs with the npm:// transport but with no other slash in it, the common MIRRORS and PREMIRRORS pattern of npm://.*/.* fails to match. Add a new pattern in the mirros.bbclass and own-mirrors.bbclass classes for these URIs. Many URIs with the npm:// transport have no slash after the host part: