sm-grimoire-bugs AT lists.ibiblio.org
Subject: SourceMage Grimoire Bug List
List archive
[SM-Grimoire-Bugs] [Bug 10940] get_kernel_version isn't flexible enough
- From: bugzilla-daemon AT bugs.sourcemage.org
- To: sm-grimoire-bugs AT lists.ibiblio.org
- Subject: [SM-Grimoire-Bugs] [Bug 10940] get_kernel_version isn't flexible enough
- Date: 22 Sep 2006 05:11:23 -0000
http://bugs.sourcemage.org/show_bug.cgi?id=10940
------- 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... :)
if [[ -f $CONFIG_CACHE/LOCAL_KERNEL_CONFIG ]]
then
cat $CONFIG_CACHE/LOCAL_KERNEL_CONFIG
elif [[ $PERSISTENT_KERNEL_VERSION ]]
then
echo $PERSISTENT_KERNEL_VERSION
elif [[ $(installed_version linux) ]]
then
echo $(installed_version linux)
else
uname -r
fi
--
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-Grimoire-Bugs] [Bug 10940] get_kernel_version isn't flexible enough,
bugzilla-daemon, 09/03/2006
- <Possible follow-up(s)>
- [SM-Grimoire-Bugs] [Bug 10940] get_kernel_version isn't flexible enough, bugzilla-daemon, 09/21/2006
- [SM-Grimoire-Bugs] [Bug 10940] get_kernel_version isn't flexible enough, bugzilla-daemon, 09/22/2006
- [SM-Grimoire-Bugs] [Bug 10940] get_kernel_version isn't flexible enough, bugzilla-daemon, 09/22/2006
Archive powered by MHonArc 2.6.24.