chore: fix the dir remove operation

This commit is contained in:
maksyuki committed 2025-12-17 22:09:10 +08:00
1 parent 6ccb01a1e7
commit ff1851ed44
1 file changed
+5 -5
+5 -5
View File
@@ -54,12 +54,11 @@ def install_dependencies():
# Install dependencies (according to Verilator official documentation)
dependencies = [
"git", "help2man", "perl", "python3", "make", "autoconf", "g++", "gcc", "flex", "bison", "ccache",
"git", "help2man", "perl", "python3", "make", "autoconf", "g++", "flex", "bison", "ccache",
"numactl", "perl-doc",
"libfl2",
"libfl-dev",
"zlib1g", "zlib1g-dev",
"build-essential"
"zlib1g", "zlib1g-dev"
]
# Additional packages for newer Ubuntu versions
@@ -243,9 +242,10 @@ def install_software_toolchain():
print(f"✗ software toolchain installation failed: {e}")
return False
finally:
pass
# Clean up temporary directory
if temp_dir.exists():
shutil.rmtree(temp_dir)
# if temp_dir.exists():
# shutil.rmtree(temp_dir)
def main():
"""Main function"""