[csw-maintainers] csw-upload-pkg and _stub packages

Maciej Bliziński maciej at opencsw.org
Sun Aug 21 10:42:17 CEST 2011


There was an issue with csw-upload-pkg that made csw-upload-pkg stop
and not upload renamed packages.  I've modified csw-upload-pkg
behavior - during update, the backend removes not only matching
catalognames, but also matching pkgnames. For example:

Case 1:

Catalog: CSWfoo/foo-1.0
Uploaded: CSWfoo/foo-1.1

Backend removes existing CSWfoo/foo-1.0 and replaces it with CSWfoo/foo-1.1.

Case 2:

Catalog: CSWfoo/foo-1.0
Uploaded: CSWbar/foo-1.0

Backend removes existing CSWbar/foo-1.0 and replaces it with CSWfoo/foo-1.1.

Case 3:

Catalog: CSWfoo/foo-1.0
Uploaded: CSWfoo/foo_stub-1.0

The backend used to say: "There already is a package with pkgname
CSWfoo" and stop. It now automatically removes CSWfoo/CSWfoo-1.0 and
replaces it with CSWfoo/foo_stub-1.1.

Package renames will be easier now. But remember, more magic means
more ways to shoot yourself in the foot!

Maciej

[1] http://lists.opencsw.org/pipermail/maintainers/2011-July/015023.html


More information about the maintainers mailing list