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

Paul Eggleton paul.eggleton at linux.intel.com
Thu Aug 24 20:53:23 UTC 2017


Hi Olaf,

On Friday, 25 August 2017 6:19:46 AM NZST Olaf Mandel wrote:
> For URLs 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 URLs.
> 
> Many URLs with the npm:// transport have no slash after the host part:
> 
>   npm://registry.npmjs.org;name=foo;version=0.1.2
> 
> This means that MIRRORS and PREMIRRORS containing entries like the
> first one will not match these URLs:
> 
>   npm://.*/.*   # fails to match
>   npm://.*      # matches, but not those URLs with a slash
> 
> Because the npm:// URLs without a slash seem to be more ubiquitous (they
> are generated by recipetool), place the new pattern first.

Couldn't we just do away with npm://.*/.* ?

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the Openembedded-core mailing list