diff options
Diffstat (limited to 'bitbake/lib/layerindexlib/restapi.py')
| -rw-r--r-- | bitbake/lib/layerindexlib/restapi.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/layerindexlib/restapi.py b/bitbake/lib/layerindexlib/restapi.py index 21fd144143..7023f42f20 100644 --- a/bitbake/lib/layerindexlib/restapi.py +++ b/bitbake/lib/layerindexlib/restapi.py | |||
| @@ -5,9 +5,13 @@ | |||
| 5 | 5 | ||
| 6 | import logging | 6 | import logging |
| 7 | import json | 7 | import json |
| 8 | import os | ||
| 9 | |||
| 8 | from urllib.parse import unquote | 10 | from urllib.parse import unquote |
| 9 | from urllib.parse import urlparse | 11 | from urllib.parse import urlparse |
| 10 | 12 | ||
| 13 | import bb | ||
| 14 | |||
| 11 | import layerindexlib | 15 | import layerindexlib |
| 12 | import layerindexlib.plugin | 16 | import layerindexlib.plugin |
| 13 | 17 | ||
| @@ -163,7 +167,7 @@ class RestApiPlugin(layerindexlib.plugin.IndexPlugin): | |||
| 163 | parsed = _get_json_response(apiurl=up_stripped.geturl(), username=username, password=password, retry=False) | 167 | parsed = _get_json_response(apiurl=up_stripped.geturl(), username=username, password=password, retry=False) |
| 164 | logger.debug(1, "%s: retry successful.") | 168 | logger.debug(1, "%s: retry successful.") |
| 165 | else: | 169 | else: |
| 166 | raise LayerIndexFetchError('%s: Connection reset by peer. Is there a firewall blocking your connection?' % apiurl) | 170 | raise layerindexlib.LayerIndexFetchError('%s: Connection reset by peer. Is there a firewall blocking your connection?' % apiurl) |
| 167 | 171 | ||
| 168 | return parsed | 172 | return parsed |
| 169 | 173 | ||
