mGAR v2: Fix environment variable propagation.

If you set PARALLELMFLAGS to e.g. "-j 10", "mgar platforms" would break. This
patch adds quotes around environment variable values, allowing to pass values
with spaces.

Signed-off-by: Maciej Blizinski <maciej@opencsw.org>

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@21012 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Uniform way of connecting to the database

It was inconsistent across the two web apps. It's now moved to a common place,
and connecting is done only at application startup, and in each method.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@21015 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Use default raise, preserving the origin

If "raise e" is used, the original place where the exception was raised, is
lost.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@21016 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Better message when errors found

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@21017 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Progressbar for catalog import

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@21018 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Add missed module imports

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