Bart Smaalders wrote:
Philip Brown wrote:
It would be very nice if sun provided a mechanism in IPS, that allowed for

[file assembly, or file editing like above], that was well documented, well advertised, and appropriately named and placed.

File editing isn't a reversible operation so it's out; file assembly is
tractable.


I'm not sure what "file assembly" really refers to. So I will limit my comments to my concept of "file editing".

The most common type of "file editing" needed that I have seen, is a fairly limited case. It's one that sun does in a fair amount of its own pkgs, and amounts to basically just inserting some lines in a file, bounded by some magic string.
eg:

#### This is for pkg SUNWfoopkg
blah blah
blahblahblah
#### End of SUNWfoopkg section


That sort of file editing is most definately, and almost trivially, reversible.

Thus, I think IPS should offer a clean mechanism for doing such operations.
The simple braindead version, would be "append it to end of file". Such as /etc/services style addons.

An optional enhancement to such a mechanism, would be to support optional file section tags, where sun would define some format for document location tags. document/config files that need to be compatible with the mechanism, would then provide the tags in appropriate locations.


_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to