Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Re: The story of "Oh, my dependencies"

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Jason Flatt <jason AT flattfamily.com>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] Re: The story of "Oh, my dependencies"
  • Date: Tue, 18 May 2004 22:12:22 -0700

On Tuesday 18 May 2004 9:48 am, Andrew wrote:
> > In the same kind of idea is it planned (is it at least feasable?) to do
> > something like: I want to cast X.
> > Y is also casted because X depends on Y.
> > I don't want X anymore so I dispell it.
> > -->dispel offers me to dispell Y as well because it's no longer needed by
> > any spell.
> >
> > I would find this useful because it often happens that I cast something
> > which depends on a lot of other stuff just to see if I like it; but I
> > usually dispel it afterwards and since I don't want my system to be
> > bloated by lots of unused stuff, I have to dispell one by one all the
> > previous dependencies.
>
> Yes, its definitly plausible to teach dispel about depends, just no one
> has time to do it.
>
> We can use the compute_installed_depends function to build up hash tables
> of what depends on what, and what is depended on by what, thus making
> it so one can wander up and down the depends tree.
>
> The precondition is that the depends tree is actually valid. There are a
> number of different roads we must take in order to accomplish that. 1)
> clease (done)
> 2) only update depends on successful cast (working on it)
> 3) dispel needs to remove depends on dispel (goes along with the
> suggested changes)
>
> So much code to write, so little time.
>
> -Andrew

I'd be okay with just a message or a query. (Although, offering to
automatically dispel (defaulting to 'n') would be a nice addition.)

Thinking about this thread, it occurs to me that there's really two issues
here:
1) Spell X depends on spell Y. Dispelling X offers to dispel Y (or at least
informs).
2) Spell X depends on spell Y. Dispelling Y resists until a --force flag is
used or X is dispelled (which then moves back to point 1).

--
Jason Flatt (jason @ flattfamily . com)
Father of five (http://www.flattfamily.com/)
Linux user (http://www.sourcemage.org/)
IRC Nick: Oadae Channels: #sourcemage, #lvlug Server: irc.freenode.net

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/IT d(-) s+:- a>++++ C++$(+++) UL++++ P(+) L+++ E- W++ N+@ o? K? w-- O?
M-- V PS- PE+ Y+ PGP@ t 5+ X R tv--() b+@ DI+@ D+++ G e h---- r+++ y++++
------END GEEK CODE BLOCK------




Archive powered by MHonArc 2.6.24.

Top of Page