mirror of
https://github.com/derrod/legendary.git
synced 2025-01-03 04:45:28 +00:00
[core] Fix calculating install size *again*
This commit is contained in:
parent
34677cc02e
commit
df9380ab3d
|
@ -880,7 +880,7 @@ class LegendaryCore:
|
||||||
# check if enough disk space is free (dl size is the approximate amount the installation will grow)
|
# check if enough disk space is free (dl size is the approximate amount the installation will grow)
|
||||||
min_disk_space = analysis.install_size
|
min_disk_space = analysis.install_size
|
||||||
if updating:
|
if updating:
|
||||||
min_disk_space += analysis.biggest_file_size + analysis.install_size
|
min_disk_space += analysis.biggest_file_size
|
||||||
|
|
||||||
# todo when resuming, only check remaining files
|
# todo when resuming, only check remaining files
|
||||||
_, _, free = shutil.disk_usage(os.path.split(install.install_path)[0])
|
_, _, free = shutil.disk_usage(os.path.split(install.install_path)[0])
|
||||||
|
|
Loading…
Reference in a new issue