csw-upload-pkg: Error msg when pkg unknown

When a package is not in the DB, csw-upload-pkg will not work on the login
host. This is the case for many reasons, including:

- login is a sparc host, and we currently are not able to index intel packages
	on a sparc box
- something's messed up with path searches, so the installed csw-upload-pkg
	utility is unable to find the pkgtrans helper
- not having an indexed package at this point is unusual, so this scenario is
	prone to breaking silently

Therefore, it's better to not even try to index the package, but display an
error message instead, so maintainers have a better idea what to do.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20871 d3b55034-1cff-0310-a425-aefe953e1e90
GAR v2: We do not depend on py_yaml any more

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20882 d3b55034-1cff-0310-a425-aefe953e1e90
gar/checkpkg: (FileMagic) don't call close on _magic_cookie if it has not been initialized

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20884 d3b55034-1cff-0310-a425-aefe953e1e90
gar/checkpkg: reverted previous screwed commit that included unwanted changes

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20885 d3b55034-1cff-0310-a425-aefe953e1e90
gar/checkpkg: (FileMagic) don't call close on _magic_cookie if it has not been initialized

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20886 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb-web: Better maintainers display

It used to be: "j...@opencsw.org", now: "joe@open..."

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20890 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb-web: Display package as basename

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20891 d3b55034-1cff-0310-a425-aefe953e1e90
generate-catalog-file: Do not hardcode cache path

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20892 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: Catalog generation information

Storing catalog information in a small table.

This change allows to speed up catalog generation thanks to not fetching the
currently gigantic full package stats.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20893 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb-web: Comments and md5 sum in a response

For better visibility as to what's going on.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20894 d3b55034-1cff-0310-a425-aefe953e1e90
Stop gathering ldd data that are not used

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20904 d3b55034-1cff-0310-a425-aefe953e1e90
gar: checkpkg: remove the package copy step by directly gunzipping the compressed package

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20905 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Display expected 64-bit bin locations

Just to make it a little clearer what is checkpkg thinking.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20929 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Tests data fixes

Fixes for testing data changes missed in previous commits.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20930 d3b55034-1cff-0310-a425-aefe953e1e90
releases-web: Do not read whole file into memory

Do it in chunks instead: less RAM usage.

git-svn-id: http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2@20932 d3b55034-1cff-0310-a425-aefe953e1e90
releases-web: Save the file in small chunks

Avoids reading the whole file into memory.

Also fixes a race condition between unlink() and open() by using os.rename()
instead.

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