diff options
| author | Jeremy Puhlman <jpuhlman@mvista.com> | 2016-05-12 15:41:50 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:24:00 +0100 |
| commit | dca3aba0f4a8e2dfbac1e53dca2d0ff6fce215f0 (patch) | |
| tree | 24226d100215c0f133234d1654b94320c4ef7efd | |
| parent | 642a997adee8f12ed640a03ead8fdd73ca0f6ab1 (diff) | |
| download | poky-dca3aba0f4a8e2dfbac1e53dca2d0ff6fce215f0.tar.gz | |
sanity: Switch urlparse to urllib.parse
urlparse is replaced with urllib.parse functionality in python3
(From OE-Core rev: ecfcc5dad20943b762a741546732a6c447265251)
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes/sanity.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index addeab66c5..088dd2ac23 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
| @@ -903,13 +903,13 @@ def check_sanity_everybuild(status, d): | |||
| 903 | continue | 903 | continue |
| 904 | 904 | ||
| 905 | if mirror.startswith('file://'): | 905 | if mirror.startswith('file://'): |
| 906 | import urlparse | 906 | import urllib |
| 907 | check_symlink(urlparse.urlparse(mirror).path, d) | 907 | check_symlink(urllib.parse.urlparse(mirror).path, d) |
| 908 | # SSTATE_MIRROR ends with a /PATH string | 908 | # SSTATE_MIRROR ends with a /PATH string |
| 909 | if mirror.endswith('/PATH'): | 909 | if mirror.endswith('/PATH'): |
| 910 | # remove /PATH$ from SSTATE_MIRROR to get a working | 910 | # remove /PATH$ from SSTATE_MIRROR to get a working |
| 911 | # base directory path | 911 | # base directory path |
| 912 | mirror_base = urlparse.urlparse(mirror[:-1*len('/PATH')]).path | 912 | mirror_base = urllib.parse.urlparse(mirror[:-1*len('/PATH')]).path |
| 913 | check_symlink(mirror_base, d) | 913 | check_symlink(mirror_base, d) |
| 914 | 914 | ||
| 915 | # Check that TMPDIR hasn't changed location since the last time we were run | 915 | # Check that TMPDIR hasn't changed location since the last time we were run |
