mirror of
https://github.com/munki/munki.git
synced 2026-04-24 05:49:42 -05:00
updatecheck.py enoughDiskSpace() -- coerce all installed_size values to integers when calculating available disk space. Fix for broken pkginfo editing that saved installed_size as string instead of integer.
This commit is contained in:
@@ -1005,7 +1005,7 @@ def enoughDiskSpace(manifestitem_pl, installlist=None,
|
||||
# subtract space needed for other items that are to be installed
|
||||
if item.get('installer_item'):
|
||||
availablediskspace = availablediskspace - \
|
||||
item.get('installed_size',0)
|
||||
int(item.get('installed_size',0))
|
||||
|
||||
if availablediskspace > diskspaceneeded:
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user