If you upload a set of packages for 1 Solaris release only, all is good. If
you upload with something like "csw-upload-pkg * " and in your set of
packages there is a mix of 5.9 and 5.10 packages, the uploader will doubly
assign packages to 5.10 and 5.11 catalogs.

This logic needs to be corrected. This link points to the specific place of
code with a comment describing the issue and suggests which way to go:

https://buildfarm.opencsw.org/source/xref/opencsw/csw/mgar/gar/v2/lib/python/csw_upload_pkg.py#163

There is also a set of tests:
https://buildfarm.opencsw.org/source/xref/opencsw/csw/mgar/gar/v2/lib/python/csw_upload_pkg_test.py

As usual, I'm offering advice and code reviews; if you mail me your patch
before committing, I'll reply with a review.

It's easy to test your changes, you just modify the file in your buildtree
(~/opencsw/.buildsys) and run it.

Or you can rewrite the whole thing in Perl. ;-)

Any takers?

Maciej

Reply via email to