I'm developing debian packages and I have troubles with correctly defining 'Installed-Size' under DEBIAN/control.
I have created a script that continuously checks svn repository for new revisions, and if found some changes then calculates code's size (excluding DEBIAN folder) with du -s command and then this value is placed to 'Installed-size'.
DEBIAN/control file looks like follows:
Package: myfirstdebpackage
Version: 1.0
Architecture: all
Maintainer: me
Installed-Size: 16664
Depends: python (>=2.7), python-appindicator, python-numpy, python-suds
Section: extras
Priority: optional
Homepage: www.example.com
Description: My first deb package
Application's folder structure:
myfirstdebpackage/DEBIAN
myfirstdebpackage/usr/bin/myfirstdebpackage/<files>
First installation goes well (via apt repository) but after creating a newer version and trying to update package I got 'size-mismatch' or 'Hash Sum mismatch' error.
What's wrong?