Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 7834] New: Checking status of a provider with spell_ok

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 7834] New: Checking status of a provider with spell_ok
  • Date: Thu, 16 Dec 2004 22:38:22 -0800 (PST)

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

Summary: Checking status of a provider with spell_ok
Product: Sorcery
Version: Untargetted future release
Platform: All
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P3
Component: subroutines
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: eric AT sandall.us


We can use `spell_ok` to check if certain spells are installed, but what if we
want to check if a certain provider is installed? Say something optionally
depends on X11-LIBS (e.g. setiathome) and if some X11-LIBS is installed we'd
like
to install something (e.g. xsetiathome binary). We should be able to do:
if spell_ok X11-LIBS; then
install -m 755 xsetiathome /usr/bin
fi

Otherwise we have to either check for every provider of X11-LIBS ourselves
(which
may change in the future) or use a config_query asking if they want
xsetiathome
and then depend on X11-LIBS, but that doesn't take into account if a provider
of
X11-LIBS is already installed.

--
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.



  • [SM-Sorcery-Bugs] [Bug 7834] New: Checking status of a provider with spell_ok, bugzilla-daemon, 12/17/2004

Archive powered by MHonArc 2.6.24.

Top of Page