csw-upload-pkg: register pkg only when necessary

Calling the register function is destructive and causes a package to be
removed from all catalogs. The code probably needs to be written more
defensively against this, but at the very least we can stop calling it
unconditionally when uploading a package.

git-svn-id: svn+ssh://svn.code.sf.net/p/gar/code/csw/mgar/gar/v2@23125 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb-web: Return a meaningful message from rest

When checking if a package exists in a certain catalog, return back parameters
of the query to allow double-checking.

git-svn-id: svn+ssh://svn.code.sf.net/p/gar/code/csw/mgar/gar/v2@23126 d3b55034-1cff-0310-a425-aefe953e1e90
chkdbcat: Make it executable (tests too)

chkdbcat_test: Add the #! line

chkdbcat: Fix unit tests and adapt to new code

git-svn-id: svn+ssh://svn.code.sf.net/p/gar/code/csw/mgar/gar/v2@23129 d3b55034-1cff-0310-a425-aefe953e1e90
find-obsolete-pkgs: Pass around rest_client

Since rest_client is necessary in a few places, let's instantiate it at the
top level and then pass the instance around between functions.

git-svn-id: svn+ssh://svn.code.sf.net/p/gar/code/csw/mgar/gar/v2@23130 d3b55034-1cff-0310-a425-aefe953e1e90
gar/v2: (check_db_symbols) handle the case where only the library path is given by ldd

git-svn-id: svn+ssh://svn.code.sf.net/p/gar/code/csw/mgar/gar/v2@23132 d3b55034-1cff-0310-a425-aefe953e1e90
gar/v2: (check_db_symbols) some perltidying

git-svn-id: svn+ssh://svn.code.sf.net/p/gar/code/csw/mgar/gar/v2@23133 d3b55034-1cff-0310-a425-aefe953e1e90
gar/v2: add libumem to the list of solaris native libraries

git-svn-id: svn+ssh://svn.code.sf.net/p/gar/code/csw/mgar/gar/v2@23134 d3b55034-1cff-0310-a425-aefe953e1e90