Skip to content

Commit 829c345

Browse files
authored
fix crash when reinstalling
1 parent 7a33014 commit 829c345

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

platform.py

-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ def install_tool(TOOL, retry_count=0):
7777
shutil.copyfile(TOOL_PACKAGE_PATH, join(TOOLS_PATH_DEFAULT, "tools", TOOL, "package.json"))
7878
except FileNotFoundError as e:
7979
sys.stderr.write(f"Error copying tool package file: {e}\n")
80-
self.packages.pop(TOOL, None)
8180
if os.path.exists(TOOL_PATH) and os.path.isdir(TOOL_PATH):
8281
try:
8382
shutil.rmtree(TOOL_PATH)
@@ -101,7 +100,6 @@ def install_tool(TOOL, retry_count=0):
101100
elif "version" not in package_data:
102101
print(f"Warning: Cannot determine installed version for {TOOL}. Reinstalling...")
103102
else: # Installed version does not match required version, deinstall existing and install needed
104-
self.packages.pop(TOOL, None)
105103
if os.path.exists(TOOL_PATH) and os.path.isdir(TOOL_PATH):
106104
try:
107105
shutil.rmtree(TOOL_PATH)

0 commit comments

Comments
 (0)