Module xalt_util
[hide private]
[frames] | no frames]

Module xalt_util

source code

Functions [hide private]
 
config_logger()
Configure the logging functions
source code
 
extract_compiler(pstree)
Take the output of pstree and find the compiler
source code
 
files_in_tree(path, pattern)
Find a list of files in directory [[path]] that match [[pattern]]
source code
 
which(program)
Find full path to [[program]]
source code
 
capture(cmd)
Capture standard out for a command.
source code
 
carp(key, v)
Check to make sure that the first part of v contains key.
source code
 
remove_files(fileA)
Remove this list of files.
source code
 
obj_type(object_path)
Determine what object type [[object_path]] is (a, o, so)
source code
 
obj2module(object_path, reverseMapT)
Find module for [[object_path]] in [[reverseMapT]] if it is exists, "NULL" otherwise.
source code
 
dbConfigFn(dbname)
Build config file name from dbname.
source code
Variables [hide private]
  colonPairPat = re.compile(r"([^:]+):(.*)")
  numberPat = re.compile(r'[0-9][0-9]*')
  defaultPat = re.compile(r'default:?')
Function Details [hide private]

extract_compiler(pstree)

source code 

Take the output of pstree and find the compiler

Parameters:
  • pstree - the single line of processes back to init.

files_in_tree(path, pattern)

source code 

Find a list of files in directory [[path]] that match [[pattern]]

Parameters:
  • path - directory.
  • pattern - file glob pattern.

which(program)

source code 

Find full path to [[program]]

Parameters:
  • program - program to find in path.

capture(cmd)

source code 

Capture standard out for a command.

Parameters:
  • cmd - Command string or array.

carp(key, v)

source code 

Check to make sure that the first part of v contains key. Raise exception if not.

Parameters:
  • key - key
  • v - value

remove_files(fileA)

source code 

Remove this list of files. Do not raise exception if file doesn't exist.

Parameters:
  • fileA - array of file

obj_type(object_path)

source code 

Determine what object type [[object_path]] is (a, o, so)

Parameters:
  • object_path - name of object.

obj2module(object_path, reverseMapT)

source code 

Find module for [[object_path]] in [[reverseMapT]] if it is exists, "NULL" otherwise.

Parameters:
  • object_path - full object path
  • reverseMapT - reverse map table. Paths to modules

dbConfigFn(dbname)

source code 

Build config file name from dbname.

Parameters:
  • dbname - db name