]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity: Switch urlparse to urllib.parse
authorJeremy Puhlman <jpuhlman@mvista.com>
Thu, 12 May 2016 22:41:50 +0000 (15:41 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Jun 2016 07:10:02 +0000 (08:10 +0100)
urlparse is replaced with urllib.parse functionality in python3

Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sanity.bbclass

index addeab66c5cd682dae17f34045cbac92ac2abd93..088dd2ac2381c3e378efd0f1557b30d3f86f82bf 100644 (file)
@@ -903,13 +903,13 @@ def check_sanity_everybuild(status, d):
                 continue
 
             if mirror.startswith('file://'):
-                import urlparse
-                check_symlink(urlparse.urlparse(mirror).path, d)
+                import urllib
+                check_symlink(urllib.parse.urlparse(mirror).path, d)
                 # SSTATE_MIRROR ends with a /PATH string
                 if mirror.endswith('/PATH'):
                     # remove /PATH$ from SSTATE_MIRROR to get a working
                     # base directory path
-                    mirror_base = urlparse.urlparse(mirror[:-1*len('/PATH')]).path
+                    mirror_base = urllib.parse.urlparse(mirror[:-1*len('/PATH')]).path
                     check_symlink(mirror_base, d)
 
     # Check that TMPDIR hasn't changed location since the last time we were run