mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
_check_manifest_requirements: fix "disk" req message with least free space dir
This commit is contained in:
parent
cf2e7e1295
commit
66d99e7fcb
1 changed files with 1 additions and 5 deletions
|
@ -2534,11 +2534,7 @@ def _check_manifest_requirements(
|
|||
has_enough_disk = (
|
||||
root_free_space > disk_req_bin and var_free_space > disk_req_bin
|
||||
)
|
||||
free_space = binary_to_human(
|
||||
root_free_space
|
||||
if root_free_space == var_free_space
|
||||
else root_free_space + var_free_space
|
||||
)
|
||||
free_space = binary_to_human(min(root_free_space, var_free_space))
|
||||
|
||||
yield (
|
||||
"disk",
|
||||
|
|
Loading…
Add table
Reference in a new issue