On 09/12/12 11:14 AM, April Chin wrote:
Note that in my simple test case, I placed a read-only file into the foo
directory, but the file was still not salvaged into the bar directory.

Ok, I've dug into this - it looks like 'salvage-from' only works when the directory we're looking to move content into gets created as part of this packaging operation.

In your case, you were salvaging to a pre-existing directory 'bar' (delivered in the @1.0 version of your package), and I had thought that it would spot that

'dir path=bar owner=root group=sys mode=0755' and
'dir path=bar owner=root group=sys mode=0755 salvage-from=foo'

are different actions and deal accordingly.

I'll bring this up on pkg-discuss and decide what the best thing to do is in this case (my gut-feeling is that pkg should see the newly added salvage-from attribute and treat this as effectively a new action)

If you can work around the problem by salvaging to a directory that the new version of your package introduces, that would be great.

As to your question about "editable files and directories", it merely means unpackaged content, or packaged content that had been marked with a 'preserve' attribute, it's nothing to do with file permissions afaik.

        cheers,
                        tim
_______________________________________________
userland-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/userland-discuss

Reply via email to