"Installed-Size" is part of control file generated for each .ipk package. Looking at its name I was sure it tells us the size of the all package files as if they are installed, but it turned out that it is actually the size of data.tar.gz archive which is compressed version of what would be installed.
The value comes from scripts/ipkg-build:
installed_size=`stat -c "%s" $tmp_dir/data.tar.gz`
sed -i -e "s/^Installed-Size: .*/Installed-Size: $installed_size/" \
$pkg_dir/$CONTROL/control
And it doesn't look like a simple bug, but instead I feel there is a reason behind this.
So could someone explain to me why do we care about compressed size and why variable named "installed" which I found a bit confusing?