Return-Path: Received: from mail1.essvote.com (mail1.essvote.com [66.37.226.19]) by mail.openembedded.org (Postfix) with ESMTP id 4DD24780AE for ; Fri, 19 May 2017 14:19:40 +0000 (UTC) X-AuditID: 0a000213-e8dff70000003040-fe-591efefbaa52 Received: from ESS-EX01.essvote.corp.local (Unknown_Domain [172.16.110.40]) by mail1.essvote.com (Symantec Messaging Gateway) with SMTP id 7F.E7.12352.BFEFE195; Fri, 19 May 2017 09:19:40 -0500 (CDT) Received: from ESS-EX01.essvote.corp.local ([::1]) by ESS-EX01.essvote.corp.local ([::1]) with mapi id 14.03.0301.000; Fri, 19 May 2017 09:19:39 -0500 From: "Davis, Michael" To: "openembedded-core@lists.openembedded.org" Thread-Topic: [OE-CORE][PATCH] scripts/lib/recipetool/create_npm.py: Fix npm uri_replace Thread-Index: AQHS0KryGiwKhvf2RkefmWhIMQvG1A== Date: Fri, 19 May 2017 14:19:38 +0000 Message-ID: <20170519141954.20802-1-michael.davis@essvote.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.1.20.66] MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOLMWRmVeSWpSXmKPExsWyRiBPQ/fPP7lIg5Yb8hZ3fr5jd2D0OLdx BWMAYxS3TVJiSVlwZnqevl0Cd8aiK+cZC7ZyVazdOJ+9gfE8excjJ4eEgInE3Kt/2LoYuTiE BE4wSmz8vI0VwpnFKDF9URsrSBWbgJHEueubGEFsEYFoiaUzZoJ1MwsYSLzbvBGsRlggVOLC j2vsEDVREuunz2SCsPUkvm2dAmRzcLAIqErcPsYDEuYVsJP48Og8WAmjgJjE91NrmCBGikvc ejKfCeI4AYkle84zQ9iiEi8f/2OFsOUk1r07CVWvJ3Fj6hQ2CFtbYtnC18wQ8wUlTs58wjKB UXgWkrGzkLTMQtIyC0nLAkaWVYyCuYmZOYZ6qcXFZfklqXrJ+bmbGIHBzcXAJLyDcc4U20OM AhyMSjy8nL/lIoVYE8uKK3MPMUpzsCiJ8z5byRwpJJCeWJKanZpakFoUX1Sak1p8iJGJg/MQ owQHl5RIcWpeSmpRYmlJRjwohuKLgVEk1cBoH3ltLt/y+Tkz6iUeJVz53SSaYqps6fXmLccT Xb3OhHsLojKWuPxb+UpzGeezf5aRXgZvLJK9lMperI4OaGvljhb5XLyq/eDcYrnznT7vtmm+ usvwael/MWX/C7/1Pu19d0HmluuVbbEX//QoNF1JMHp4cfPU60/ljuW/fZe1fTv7zovG+qy1 SizFGYmGWsxFxYkADEyKdWoCAAA= Subject: [PATCH] scripts/lib/recipetool/create_npm.py: Fix npm uri_replace X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 May 2017 14:19:41 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Currently bitbakes uri_replace compares "npm://*/*" to "npm://registry.npmjs.org". The lack of the second / causes this to always= fail. This results in things like mirror tarballs not functioning. This patch adds in a / to the link generated by npm://registry.npmjs.org. Signed-off-by: Michael Davis --- scripts/lib/recipetool/create_npm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/recipetool/create_npm.py b/scripts/lib/recipetool/= create_npm.py index cb8f338..b54f539 100644 --- a/scripts/lib/recipetool/create_npm.py +++ b/scripts/lib/recipetool/create_npm.py @@ -126,7 +126,7 @@ class NpmRecipeHandler(RecipeHandler): for dep, depdata in deplist.items(): version =3D depdata.get('version', None) if version: - url =3D 'npm://registry.npmjs.org;name=3D%s;ve= rsion=3D%s;subdir=3Dnode_modules/%s' % (dep, version, dep) + url =3D 'npm://registry.npmjs.org/;name=3D%s;v= ersion=3D%s;subdir=3Dnode_modules/%s' % (dep, version, dep) scriptutils.fetch_uri(d, url, srctree) src_uri.append(url) changed =3D True --=20 2.9.4