Python coding project: csw-upload-pkg logic issues
Maciej (Matchek) Bliziński
maciej at opencsw.org
Mon Mar 17 22:38:36 CET 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencsw.org/pipermail/maintainers/attachments/20140317/3e178a19/attachment.html>
More information about the maintainers
mailing list