summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Puhlman <jpuhlman@mvista.com>2016-05-12 15:41:50 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-16 23:32:39 +0100
commitfd3b022ec29e063bd72a38ff25429d69112ea9aa (patch)
tree8f47257717c8ff16f2a1535f89d0cd37501d8a21
parent1fc840ffc0267ecf3a15c4a59ab44869ef1d6339 (diff)
downloadpoky-fd3b022ec29e063bd72a38ff25429d69112ea9aa.tar.gz
Switch urlparse to urllib.parse
urlparse is replaced with urllib.parse functionality in python3 (From OE-Core rev: 108ef7b30f0bed7f6491059b0683a0a8439c9813) Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/sanity.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 27e061d794..e04a236606 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -891,13 +891,13 @@ def check_sanity_everybuild(status, d):
891 continue 891 continue
892 892
893 if mirror.startswith('file://'): 893 if mirror.startswith('file://'):
894 import urlparse 894 import urllib
895 check_symlink(urlparse.urlparse(mirror).path, d) 895 check_symlink(urllib.parse.urlparse(mirror).path, d)
896 # SSTATE_MIRROR ends with a /PATH string 896 # SSTATE_MIRROR ends with a /PATH string
897 if mirror.endswith('/PATH'): 897 if mirror.endswith('/PATH'):
898 # remove /PATH$ from SSTATE_MIRROR to get a working 898 # remove /PATH$ from SSTATE_MIRROR to get a working
899 # base directory path 899 # base directory path
900 mirror_base = urlparse.urlparse(mirror[:-1*len('/PATH')]).path 900 mirror_base = urllib.parse.urlparse(mirror[:-1*len('/PATH')]).path
901 check_symlink(mirror_base, d) 901 check_symlink(mirror_base, d)
902 902
903 # Check that TMPDIR hasn't changed location since the last time we were run 903 # Check that TMPDIR hasn't changed location since the last time we were run