diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-18 12:37:16 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-18 12:37:16 (EDT) |
commit | 0927246d5c509e38fb06545bb2bed5483bda4307 (patch) | |
tree | 2f89851cae518419dfccc85a81ea38077023ed46 | |
parent | 64cb6e4f9e37f8fd50292e7d19241eb8a30b92de (diff) |
ob-gencontrol: Add more details to size comment
-rw-r--r-- | src/ob-gencontrol.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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)) |