[SM-Grimoire-Bugs] [Bug 10940] get_kernel_version isn't flexible enough

bugzilla-daemon at bugs.sourcemage.org bugzilla-daemon at bugs.sourcemage.org
Fri Sep 22 01:11:23 EDT 2006


------- Additional Comments From dmlb2000 at gmail.com  2006-09-22 00:11 -------
(In reply to comment #3)
> Hmm, sounds like it would work. Also sounds like I could already write 
> get_kernel_version (bug #13071) and put it in FUNCTIONS, as it's way better 
> for most spells than having to decide between sorcery or running kernel 
> version.
> So I suppose we could implement this later and still have no trouble adding it 
> to an extant get_kernel_version, right?

Okay, now I'm kinda confused as to how this would work. If the file exists
/etc/sorcery/local/LOCAL_KERNEL_VERSION use what's in there otherwise provide a
query when get_kernel_version is called?

If that's the case remember that get_kernel_version is called in BUILD and
INSTALL files so really you should make a query_kernel_version that would do the
query then maybe set a persistent var and get_kernel_version would then do, if
LOCAL_KERNEL_VERSION file use that otherwise check the persistent var and return
that otherwise use the current linux spell version and return that otherwise use
the running kernel and return that.

So... :)

elif [[ $(installed_version linux) ]]
    echo $(installed_version linux)
    uname -r

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.

More information about the SM-Grimoire-Bugs mailing list