checkpkg: Various cleanup

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20225 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Better error message for elfdump

Also, saving the exact output for easier inspection.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20226 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: The right order of creating tables

This has to satisfy internal dependencies between tables. For sqlite it doesn't
matter, but for MySQL it does.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20228 d3b55034-1cff-0310-a425-aefe953e1e90
mGAR v2: Sorted GAR required packages

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20229 d3b55034-1cff-0310-a425-aefe953e1e90