sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
Re: [SM-Discuss] subdepends: requesting a specific provider
- From: Eric Sandall <eric AT sandall.us>
- To: sm-discuss AT lists.ibiblio.org
- Subject: Re: [SM-Discuss] subdepends: requesting a specific provider
- Date: Wed, 25 Apr 2007 13:01:09 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jaka Kranjc wrote:
> I have a spell that needs one of its dependencies built against a specific
> provider.
>
> spell A DEPENDS:
> depends -sub some_provider7 B
>
> spell B DEPENDS:
> depends SOME_PROVIDER
>
> I can't come up with a good way to implement this.
> If I just add a some_provider7 dependency then the current one chosen for
> SOME_PROVIDER is possibly redundant (and any provider related logic may
> break
> down).
<snip>
Your best bet is to just have spell B depend on the specific provider in
SUB_DEPENDS and in PRE_SUB_DEPENDS use get_spell_provider to check if B
is already using some_provider7 for SOME_PROVIDER, and if not, return 1
(failure) so that the dependency can be setup.
- -sandalle
- --
Eric Sandall | Source Mage GNU/Linux Developer
eric AT sandall.us PGP: 0xA8EFDD61 | http://www.sourcemage.org/
http://eric.sandall.us/ | http://counter.li.org/ #196285
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGL7OFHXt9dKjv3WERAoHSAKC1KgGT1uQLPwfic2OGz8HTeA2dowCgoD+R
qv4aolHBUcsCluSP6QMyuNQ=
=XiwH
-----END PGP SIGNATURE-----
-
[SM-Discuss] subdepends: requesting a specific provider,
Jaka Kranjc, 04/21/2007
- Re: [SM-Discuss] subdepends: requesting a specific provider, Eric Sandall, 04/25/2007
Archive powered by MHonArc 2.6.24.