Fix size calculation for package updates