mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-07 01:02:05 +00:00
If during the update there was a sufficiently large negative number in the "Total Installed Size", then an error about lack of memory appeared. This bug has been fixed.
12 lines
646 B
Diff
12 lines
646 B
Diff
--- pacman-6.0.2/lib/libalpm/diskspace.c 2022-10-03 05:52:04.000000000 +0300
|
|
+++ pacman-6.0.2/lib/libalpm/diskspace.c.patch 2023-01-22 13:01:43.983498848 +0300
|
|
@@ -349,7 +349,7 @@
|
|
"partition %s, needed %jd, cushion %ju, free %ju\n",
|
|
mp->mount_dir, (intmax_t)mp->max_blocks_needed,
|
|
(uintmax_t)cushion, (uintmax_t)mp->fsp.f_bavail);
|
|
- if(needed >= 0 && (fsblkcnt_t)needed > mp->fsp.f_bavail) {
|
|
+ if((int)needed >= 0 && (fsblkcnt_t)needed > mp->fsp.f_bavail) {
|
|
_alpm_log(handle, ALPM_LOG_ERROR,
|
|
_("Partition %s too full: %jd blocks needed, %ju blocks free\n"),
|
|
mp->mount_dir, (intmax_t)needed, (uintmax_t)mp->fsp.f_bavail);
|