Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 8329] SECTION_DIRECTORY does not exist during PREPARE

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 8329] SECTION_DIRECTORY does not exist during PREPARE
  • Date: Mon, 28 Feb 2005 13:18:34 -0800 (PST)

http://bugs.sourcemage.org/show_bug.cgi?id=8329


acedit AT armory.com changed:

What |Removed |Added
----------------------------------------------------------------------------
Version|1.11.x |1.12.x




------- Additional Comments From acedit AT armory.com 2005-02-28 13:18 -------
The whole idea of PREPARE was to have some small section of code to run before
anything else is loaded. But I can setup a minimal environment to use before
PREPARE. Maybe a long time ago it worked as you suggest, but as far back as
1.8
that wasnt the case...I forget exactly what the conclusion was when PREPARE
was
first added.

I'll define SECTION_DIRECTORY and GRIMOIRE along with SCRIPT_DIRECTORY in
run_prepare, the other variables already exist.

SOURCE_CACHE comes from /etc/sorcery/config, so its always available.
SPELL actually comes from either the command line or depends/optional_depends
first argument. Technically speaking DETAILS doesnt need SPELL in it at all.

It would be good to document which vars exist on the PREPARE wiki page.
In the meantime the following code will work and can eventually be removed:
local SECTION_DIRECTORY=$(SECTION_DIRECTORY:-$SCRIPT_DIRECTORY/..}


--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




Archive powered by MHonArc 2.6.24.

Top of Page