All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lib/bb/fetch2: Fix npm tarball fetch
@ 2017-05-12 20:52 Davis, Michael
  2017-05-15 15:23 ` Richard Purdie
  0 siblings, 1 reply; 6+ messages in thread
From: Davis, Michael @ 2017-05-12 20:52 UTC (permalink / raw)
  To: bitbake-devel@lists.openembedded.org

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.

Signed-off-by: Michael Davis <michael.davis@essvote.com>
---
 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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-05-17 20:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-12 20:52 [PATCH] lib/bb/fetch2: Fix npm tarball fetch Davis, Michael
2017-05-15 15:23 ` Richard Purdie
2017-05-15 15:40   ` Davis, Michael
2017-05-15 15:44   ` Davis, Michael
2017-05-17 13:48   ` Davis, Michael
2017-05-17 20:35   ` Davis, Michael

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.