On 03/18/10 07:42 AM, Darren J Moffat wrote:
On 18/03/2010 12:38, Danek Duvall wrote:
Darren J Moffat wrote:
What will pkg do if I copy binaries in place and then later do a 'pkg
image-update' because I've run a full build and now want all of onnv ?
Will it complain that the binaries I copied over don't match or fix them
up with the correct new versions anyway ? [ I wouldn't want the old ones
left in place in this case ].
It'll do the right thing -- overwrite the files and trundle along its
merry
way. It's only if you replace a directory with a symlink or vice versa
that it'll get confused (a bug), and it won't update files marked with a
preserve attribute, but otherwise, you should be just fine.
Excellent, I think in that case for now the best think for me to do is
continue with my script to 'cp' the binaries into place and 'pkg
image-update' after full builds.
Subtleties of that pkg image-update you do later:
* if you've removed files that are expected to be there in the new
package version you're upgrading to, they'll get installed
* if you've changed files that haven't changed between the version of
the package you're upgrading from and to, they won't be overwritten
As such, I'd say use pkg fix if you really want to be certain you've
reverted your own changes.
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss