megous/spkg — pull request #1 by gapan (2012-05-06 15:01:18+00:00)
Title: Package database formatting changes, man page and typos

Hi Ondřej,

I took the liberty of making some changes to spkg. The most important ones are about the way formats the package information in the package database. I've had some complaints that it doesn't exactly match the way pkgtools formats the same information and that scripts that may be parsing that information expecting the exact same formatting of pkgtools may fail for packages installed with spkg. spkg reported all sizes only in KB, but pkgtools report sizes in KB if the package size is <1MB, in MBs with one decimal point if the package size is <10MB and in MBs with no decimal points if the package size is >10MB. There are also some whitespace changes; I did like the way whitespace was printed with spkg better, but I've made the changes so it matches the way pkgtools print whitespace.

Another change is that spkg would not include the slack-desc and doinst.sh files in the package logs, while pkgtools do. I've added them too, people may use a grep in /var/log/packages to check which packages have a doinst.sh script for example.

I have also added an entry for the --no-gtk-update-icon-cache option in the manpage, I forgot to include that in the patch that I had send you before.

And then there are some minor typos that I fixed. Feel free to inspect my changes and pull them if you like them.

Regards,

George