gar/v2: added test for 64 bits binaries presence

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

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20530 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Use VARCHAR instead of TEXT in MySQL

It's enough to declare field length in the model.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20531 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Use JSON for internal storage

Also: Increase the database schema version

JSON data in tests

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20532 d3b55034-1cff-0310-a425-aefe953e1e90
Remove the 'latest' field.

It's not used.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20533 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Store user and datestamp who added a pkg

An additional timestamp to keep track which package was added when to a catalog
in the database.  It doesn't have to be the package maintainer, just someone
who did the adding. User name is retrieved from HTTP auth, or it's the system
user when run from the console.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20534 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Fixes after refactoring.

I did not run unit test before committing, bad me.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20535 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Handle pickled datetime.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20536 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: More fixes after refactoring

Some wrinkles around earlier laziness in handling dates.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20537 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb-web: Do not show pkginfo

Sometimes data_obj is missing from a row and 500 error is served. Also,
displaying pkgmap requires deserializing of the whole data structure, which is
currently very slow. Therefore, we won't be showing pkgmap by default.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20538 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb-web: Show time information in catalog view

When displaying catalog info, show how much time did the query take.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20539 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Don't recode JSON when not needed

This is potentially a big time saver. When retrieving data from the database
and serving over HTTP in JSON, we can just send the data as they are without
recoding.

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