From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 6249B71DD7 for ; Mon, 15 May 2017 15:23:09 +0000 (UTC) Received: from hex ([192.168.3.34]) (authenticated bits=0) by dan.rpsys.net (8.15.2/8.15.2/Debian-3) with ESMTPSA id v4FFN4RU022416 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 15 May 2017 16:23:06 +0100 Message-ID: <1494861784.27342.18.camel@linuxfoundation.org> From: Richard Purdie To: "Davis, Michael" , "bitbake-devel@lists.openembedded.org" Date: Mon, 15 May 2017 16:23:04 +0100 In-Reply-To: <20170512205203.20459-1-michael.davis@essvote.com> References: <20170512205203.20459-1-michael.davis@essvote.com> X-Mailer: Evolution 3.18.5.2-0ubuntu3.1 Mime-Version: 1.0 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.11 (dan.rpsys.net [192.168.3.1]); Mon, 15 May 2017 16:23:06 +0100 (BST) X-Virus-Scanned: clamav-milter 0.99.2 at dan X-Virus-Status: Clean Subject: Re: [PATCH] lib/bb/fetch2: Fix npm tarball fetch X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 May 2017 15:23:12 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit On Fri, 2017-05-12 at 20:52 +0000, Davis, Michael wrote: > Tarballs generated by enabling mirror tarballs could not be found by > the > fetch for the npm.  This fixes setting the path variable in decode > url > so they can be matched. Would you be able to provide an example of a url which is incorrect and what the correct version would be? I get worried about fetcher specific url handling and we probably could do with adding a test case for this too but its hard to understand without seeing an example failure. Cheers, Richard > Signed-off-by: Michael Davis > --- >  lib/bb/fetch2/__init__.py | 2 ++ >  1 file changed, 2 insertions(+) > > diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py > index 136fc29..117c890 100644 > --- a/lib/bb/fetch2/__init__.py > +++ b/lib/bb/fetch2/__init__.py > @@ -393,6 +393,8 @@ def decodeurl(url): >                      raise MalformedUrl(url, "The URL: '%s' is > invalid: parameter %s does not specify a value (missing '=')" % (url, > s)) >                  s1, s2 = s.split('=') >                  p[s1] = s2 > +                if type == 'npm' and s1 == 'name': > +                    path = '/' + s2 >   >      return type, host, urllib.parse.unquote(path), user, pswd, p >   > --  > 2.9.3