bump GCC_VERSION to 4.8

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20646 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: 'dependency-on-nonexistent-package'

dependency-on-nonexistent-package is a better error tag name, it's more
descriptive.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20747 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Fix the email verification regex

D'oh! It missed "@opencsw-org".

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20760 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Try to recover from bad local cache

If the local cache is corrupt and doesn't want to deserialize, try fetching
again.

I experienced it with a corrupt local BDB, but it didn't save me in the long
run. Nevertheless, some additional defense won't hurt.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20761 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: remove testing of checkpkg_test

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20770 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Disable bad content check /opt/csw/share

In most cases it's just documentation. We worry mostly about binaries and
libraries.

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

Collected numerous changes that have no meritoric significance.

pkgdb: Sort imports in the rest.py file

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20796 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Throw away the unused PackageSurgeon class

Will will not be doing surgery on existing packages.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20797 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Switch from hachoir_parser to pyelftools

It's a more lightweight library. It turns out that we only need to identify
architectures of binary files.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20798 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Free magic cookies on deletion

I was hoping this was the memory leak, but it looks like it isn't it. I still
suspect something around libmagic though, mainly because the process RSS size
is way bigger than reported object sizes in Python memory profiler. libmagic is
the only C module that is used, and this symptom is likely produced by
a C module.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20799 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Move a constant to the RestClient class

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20800 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Remove the silly PackageStatsMixin class

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20801 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Use 'with' to save the config file.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20802 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Validate md5 sums in RestClient

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20803 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Move GetSqoTriad to the models module

It's used from there anyway, and pkgdb is not a good module to import.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20804 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Refactor RestClient to upload with PUT

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20805 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Retry failed calls in RestClient

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20806 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Add missing getpass import to rest.py

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