Skip to content

Commit 54fddec

Browse files
committed
fix network find
1 parent 75c3594 commit 54fddec

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

oclp_r/support/kdk_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ def __init__(self, global_constants: constants.Constants,
7676
self.kdk_url: str = ""
7777
self.kdk_url_build: str = ""
7878
self.kdk_url_version: str = ""
79-
self.size=0
8079
self.kdk_url_expected_size: int = 0
8180

8281
self.kdk_url_is_exactly_match: bool = False
@@ -244,6 +243,7 @@ def _get_latest_kdk(self, host_build: str = None, host_version: str = None) -> N
244243
self.kdk_closest_match_url_build = closest["build"]
245244
self.kdk_closest_match_url_version = closest["version"]
246245
self.kdk_closest_match_url_expected_size = closest["fileSize"]
246+
247247
self.kdk_url_is_exactly_match = False
248248

249249

@@ -327,7 +327,7 @@ def retrieve_download(self, override_path: str = "") -> network_handler.Download
327327
kdk_plist_path = Path(f"{kdk_download_path.parent}/{KDK_INFO_PLIST}") if override_path == "" else Path(f"{Path(override_path).parent}/{KDK_INFO_PLIST}")
328328

329329
self._generate_kdk_info_plist(kdk_plist_path)
330-
return network_handler.DownloadObject(self.kdk_url, kdk_download_path)
330+
return network_handler.DownloadObject(self.kdk_url, kdk_download_path,self.kdk_url_expected_size)
331331

332332

333333
def _generate_kdk_info_plist(self, plist_path: str) -> None:

oclp_r/wx_gui/gui_KDK_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def is_dir_writable(dirpath):
292292
title=self.title,
293293
global_constants=self.constants,
294294
download_obj=download_obj,
295-
item_name=f"KDK {selected_installer['version']} {selected_installer['build']}",
295+
item_name=f"KDK Build {selected_installer['version']} {selected_installer['build']}",
296296
download_icon=self.constants.package_icns_paths[self._macos_version_to_icon(int(selected_installer['build'][:2]))]
297297
)
298298
if download_obj.download_complete is False:

0 commit comments

Comments
 (0)