On Wed, Jun 17, 2009 at 11:10:24AM -0700, Glenn Lagasse wrote: > * Shawn Walker ([email protected]) wrote: > > On Jun 17, 2009, at 12:32 PM, Glenn Lagasse wrote: > >> Now if I say 'pkg uninstall -r C', I mean uninstall C and any other > >> packages that are installed as dependencies of C. Ideally, if any of > > > > You may mean C, but the other administrator that specifically installed E > > may not agree with you ;) > > > > That's were recording user intent comes in. For example, I think you'd > > agree that if one administrator installs MySQL and sets up a database, > > and then later you install amp-dev, but then decide to uninstall -r > > amp-dev, we shouldn't remove MySQL by default since that would break a > > possibly very important database :) > > Right. Someone installed MySQL outside of amp-dev. So in my mind, > recursively uninstalling amp-dev doesn't remove MySQL because MySQL > wasn't installed to satisfy amp-dev's dependencies. It *may* have been > installed to satisfy amp-dev's dependencies because the operator knew > amp-dev needed it but didn't want to install amp-dev that same day but > since it wasn't installed as part of amp-dev then it doesn't get > automatically removed when I recursively uninstall amp-dev.
Except that if amp-dev lists mysql as a dependency, you have no way of knowing that these were installed in separate steps unless you record the administrators' actions. What we're calling "intent" is the ability to work out what it was that the administrators intended to do, and then take the correct uninstall action based upon that information. You're asserting that intent information isn't necessary, but at the same time insisting that we look at how the packages were installed. That's intent. -j _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
