checkpkg: Explicitly close the file magic object.

Also adjust the unit test.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20823 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: When mime type is missing, fail.

All files must have a mime type (even if it's a fallback one).

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20824 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Display ETA when indexing the whole catalog

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20827 d3b55034-1cff-0310-a425-aefe953e1e90
releases-web: Use cjson for encoding

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20828 d3b55034-1cff-0310-a425-aefe953e1e90
releases-web: Removed unused pkgdb import

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