From 0927246d5c509e38fb06545bb2bed5483bda4307 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 18 Mar 2019 12:37:16 -0400 Subject: ob-gencontrol: Add more details to size comment --- (limited to 'src') diff --git a/src/ob-gencontrol.sh b/src/ob-gencontrol.sh index eeb8e47..5d8b397 100644 --- a/src/ob-gencontrol.sh +++ b/src/ob-gencontrol.sh @@ -59,6 +59,10 @@ gen_control() # kibibytes in its determination of whether the package's data will fit # on the system: # pkg_size_kbs = (pkg->installed_size + 1023)/1024; + # (from libopkg/opkg_install.c line 245) + # (still in upstream as of 2019-02-25, libopkg/opkg_install.c:118) + # In other words, if a package declares an installed size of 10 KiB, + # opkg checks for 10 MiB of available space. # TODO: Further investigate opkg's disk space calculation and, if # necessary, patch opkg and submit a bug report. inst_size=$(((${inst_size} + 1023) / 1024)) -- cgit v0.9.1