Addressed some PR feedback and continue filtering with same search string even after refresh

Signed-off-by: nggieber <nggieber@amazon.com>
This commit is contained in:
nggieber
2021-11-10 15:29:20 -08:00
parent 2913d72d17
commit d9443ec42c
6 changed files with 22 additions and 17 deletions
+5 -5
View File
@@ -74,11 +74,11 @@ def process_add_o3de_repo(file_name: str or pathlib.Path,
manifest_json_uri = f'{o3de_object_uri}/{manifest_json}'
manifest_json_sha256 = hashlib.sha256(manifest_json_uri.encode())
cache_file = cache_folder / str(manifest_json_sha256.hexdigest() + '.json')
if cache_file.is_file():
parsed_uri = urllib.parse.urlparse(manifest_json_uri)
download_file_result = utils.download_file(parsed_uri, cache_file, True)
if download_file_result != 0:
return download_file_result
parsed_uri = urllib.parse.urlparse(manifest_json_uri)
download_file_result = utils.download_file(parsed_uri, cache_file, True)
if download_file_result != 0:
return download_file_result
# Having a repo is also optional
repo_list = []