catalog_notifier: Adapted to the new code

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23080 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Updated list of catalogs

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23081 d3b55034-1cff-0310-a425-aefe953e1e90
generate_catalog_file: Update for the new APIs

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23082 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Display column names on SVR4 details page

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23083 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: A number of fixes for the new APIs

These are the changes made on the web host to make catalog generation work.

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23084 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Enable unit tests for {sym,hard}links

There seems to be a problem with dependency detection, but it's not obvious.
These tests are passing.

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23086 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Bugfix for dependency detection

Introduced during the rewrite, a data structure wasn't updated to match the
new code.  The result was that the context in which packages were examined,
was broken.

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23090 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Various code cleanup

No dependency changes

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23091 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: New assertion: files declared as needed

Previously, if no package was found to satisfy a need for a file, no error was
thrown. From now on, there will be an error thrown that a file was missing and
not satisfied. This will catch things like dangling symlinks.

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23092 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: rest.py Move debug logging back to debug

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23094 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Don't report missing /o/c/bin/isaexec

The CSWisaexec package has no files in it, /opt/csw/bin/isaexec is in a way
owned by CSWisaexec, but the file is put in place by the postinstall script,
not via pkgmap.

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23096 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Retry GetPkgByMd5

Apache/HTTP can be flaky, so retry HTTP requests in GetPkgByMd5.

(Failures have been observed on the buildfarm.)

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23097 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb-web: Display pkgmap in fixed font

Since we're back in good shape now, we can display pkgmap on the package
metadata page.

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23098 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Fixes for the HTML generator

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23099 d3b55034-1cff-0310-a425-aefe953e1e90
find-obsolete-pkgs: Adapt to the new code

Additional changes:

- Instead of sometimes using CatSubSet and sometimes pkgname, let's always use
  CatSubSet
- Split the code into smaller functions

TODO ideas:
1. Provide a per-maintainer report, so people can know what they can drop or
   rebuild.
2. Use the for-generation REST endpoint, because it's fast and provides all
   the information necessary for calculation, and avoids the problem with
   reverse dependency cache being stale.

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23102 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Nicer format for logging messager

h/t Carsten Grzemba

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23106 d3b55034-1cff-0310-a425-aefe953e1e90
find-obsolete-pkgs: Update for the new code

Also fixes for safe_remove_package.py

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23107 d3b55034-1cff-0310-a425-aefe953e1e90
csw-upload-pkg: Fix a syntax error

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23108 d3b55034-1cff-0310-a425-aefe953e1e90
rest.py: Remove a spammy message from warning lev

This error is now commonly occurring in multiple scripts, no need to show it
to users.

git-svn-id: https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@23109 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Enabled unit tests for license paths

And that the catalogname matches pkgname.

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