Package portage :: Package util :: Module ExtractKernelVersion
[hide private]

Module ExtractKernelVersion

source code

Functions [hide private]
 
ExtractKernelVersion(base_dir)
Try to figure out what kernel version we are running @param base_dir: Path to sources (usually /usr/src/linux) @type base_dir: string @rtype: tuple( version[string], error[string]) @return: 1.
source code
Variables [hide private]
  __package__ = 'portage.util'

Imports: io, os, _encodings, _unicode_encode, getconfig, grabfile


Function Details [hide private]

ExtractKernelVersion(base_dir)

source code 

Try to figure out what kernel version we are running
@param base_dir: Path to sources (usually /usr/src/linux)
@type base_dir: string
@rtype: tuple( version[string], error[string])
@return:
1. tuple( version[string], error[string])
Either version or error is populated (but never both)