Skip to Content.
Sympa Menu

sm-sorcery - Re: [SM-Sorcery]asking about optional_depends in DEPENDS

sm-sorcery AT lists.ibiblio.org

Subject: Discussion of Sorcery related topics

List archive

Chronological Thread  
  • From: Sergey A Lipnevich <sergeyli AT pisem.net>
  • To: eric AT sandall.us
  • Cc: sm-sorcery AT lists.ibiblio.org
  • Subject: Re: [SM-Sorcery]asking about optional_depends in DEPENDS
  • Date: Fri, 11 Oct 2002 16:25:52 -0400

I tried it numerous times today with devel sorcery, it doesn't work this way anymore. The question is only asked if the spell is not installed. I'm pretty sure because I've also made changes to it today and remember the relevant portion of code. For instance, php has about ten optional_depends, I'm asked only about one which is not installed.

Eric Sandall wrote:

Hi guys!

Sometimes, even if the spell which is in optional_depends, is installed,
I still want this specific dependency to be disabled (e.g. php couldn't
depend on mm when built for apache2). Optional_depends enables such
dependencies automatically, so in my case, php doesn't cast. Does it
sound like a good option if sorcery introduces another parameter to
optional_depends, "y/n"-style, and asks an admin about each
`optional_depends' spell whether s/he wants current spell to depend on
it or not? E.g., in my case, if php has `optional_depends mm', I'd be
asked if I want mm's instructions "--with-mm" in my $OPTS or not, no
matter if mm is installed. I hope you get the point :-).
Thanks!

Sergey.


optional_depends already does this (it does this for me), even if you have
a spell installed which is an optional_depends, you are asked again
whether you want the option. What you describe is attributed to
auto_depends (which is now taken out), which would _not_ query the SA if
the spell was already installed and would automagically put it in $OPTS.

Try 'cast -r php' to have it re-query, for it probably saved your answers
from last time.

-One of Four
a.k.a. sandalle







Archive powered by MHonArc 2.6.24.

Top of Page