mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
parent
19ba9a45f7
commit
c43833146a
|
@ -1248,6 +1248,8 @@ class LegendaryCore:
|
||||||
current_size = get_dir_size(install.install_path)
|
current_size = get_dir_size(install.install_path)
|
||||||
delta = max(0, analysis.install_size - current_size)
|
delta = max(0, analysis.install_size - current_size)
|
||||||
min_disk_space = delta + analysis.biggest_file_size
|
min_disk_space = delta + analysis.biggest_file_size
|
||||||
|
elif analysis.reuse_size:
|
||||||
|
min_disk_space -= analysis.reuse_size
|
||||||
|
|
||||||
_, _, free = shutil.disk_usage(base_path)
|
_, _, free = shutil.disk_usage(base_path)
|
||||||
if free < min_disk_space:
|
if free < min_disk_space:
|
||||||
|
|
Loading…
Reference in a new issue