Hi there,

Over on userland-discuss, April Chin brought up a problem she was seeing with 'salvage-from'.

She's looking to get rid of a directory in a new version of her application, and salvage content to another directory.

The catch is, that the target directory already exists on the system (it's packaged in both the new, and old versions of the package) and so the salvage-from mechanism isn't kicking in.


I've tested a change to src/actions/directory.py that allows us to perform salvaging when the directory already exists (but the action install() method is still called, ie. the action has actually changed, in this case, by adding the 'salvage-from' attribute) but am wondering if this seems like a sane thing to do?

The man page explicitly states that this happens on directory creation, which is why I'm being cautious here.


Another solution would be to salvage content to a new .migrate directory, and also deliver an new SMF service specific to her package that runs a migration script, but that seems like a bit of a drag.

        cheers,
                        tim
_______________________________________________
pkg-discuss mailing list
pkg-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to