pkgsanitychecks runs sanity checks on the binary packages and lets the build fail if the sanity checks
don't pass.
The following checks are run:
Locationofpublicpythonmodules
Starting with python-2.6 the public python modules are expected to be placed in
/usr/lib/pythonX.Y/dist-packages instead of /usr/lib/pythonX.Y/site-packages.Filesin/usr/local
Checks if any files are placed in /usr/local instead of /usr.Filesin/usr/share/initramfs-tools/hooks/
Checks if any files are placed in /usr/share/initramfs-tools/hooks/ are not executable.