Package gbp :: Package bb :: Class BBFile
[hide private]
[frames] | no frames]

Class BBFile

object --+
         |
        BBFile

Class representing .bb meta data

Instance Methods [hide private]
 
__init__(self, path, cfg_data=None)
x.__init__(...) initializes x; see help(type(x)) for signature
 
parse_bb(self, path, cfg_data)
Parse bb meta file
 
naive_parse_bb(self, path)
Naive parsing of standalone recipes
 
_expand_single(self, match)
Expand single occurrence of a variable reference
 
expand_val(self, val, rec=0)
Expand variable
 
getVar(self, var, expand=True)
Get variable

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
unquote_val(val)
Unquote / strip variable value
 
unwrap_lines(lines)
Return a joined string of multiple lines
 
var_to_str(var, values, oper='+=')
Create a well formatted string buffer containing a multiline variable assignment
 
parse_file(filepath, cb_func)
Parse recipe
 
set_var_val(filepath, var, val)
Set variable value in a recipe
 
substitute_var_val(filepath, var, pattern, repl)
Update variable in a recipe
 
append_var_val(filepath, var, new_vals)
Update variable in a recipe
Class Variables [hide private]
  var_ops = '\\+=|=\\+|\\?=|\\?\\?=|:=|='
  vardef_re = re.compile(r'(^(?P<name>\w+)\s*(?P<op>\+=|=\+|\?=|...
Properties [hide private]
  version
Get version information as a dict
  bb_path
Full path of the bb file

Inherited from object: __class__

Method Details [hide private]

__init__(self, path, cfg_data=None)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

vardef_re

Value:
re.compile(r'(^(?P<name>\w+)\s*(?P<op>\+=|=\+|\?=|\?\?=|:=|=)\s*)(?P<v\
alue>\S.*)')

Property Details [hide private]

version

Get version information as a dict

Get Method:
unreachable.version(self) - Get version information as a dict

bb_path

Full path of the bb file

Get Method:
unreachable.bb_path(self) - Full path of the bb file