Package conary :: Package build :: Module buildpackage :: Class BuildComponent
[hide private]
[frames] | no frames]

Class BuildComponent

source code

object --+    
         |    
      dict --+
             |
            BuildComponent

Instance Methods [hide private]
 
addFile(self, path, realPath)
Add a file to the build component
source code
 
addDevice(self, path, devtype, major, minor, owner='root', group='root', perms=432)
Add a device node to the build component
source code
 
getFile(self, path) source code
 
getRealPath(self, path) source code
str
getName(self)
Return the name of the BuildComponent
source code
 
getUserMap(self)
Dict mapping user names to tuples of (preferred_uid, groupname, preferred_groupid, homedir, comment, shell)
source code
 
getUserGroupMap(self)
Reverse map from group name to user name for groups created as part of a user definition.
source code
 
getGroupMap(self)
Dict mapping group names to preferred_groupid
source code
 
getSuppGroupMap(self)
Dict mapping user names to (group, preferred_groupid) tuples
source code
 
__init__(self, name, recipe)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

addFile(self, path, realPath)

source code 
Add a file to the build component
Parameters:
  • path - the destination of the file in the component
  • realPath - the location of the actual file on the filesystem, used to obtain the contents of the file when creating a changeset to commit to the repository

addDevice(self, path, devtype, major, minor, owner='root', group='root', perms=432)

source code 
Add a device node to the build component
Parameters:
  • path - the destination of the device node in the component

getName(self)

source code 
Return the name of the BuildComponent
Returns: str
name of the BuildComponent

__init__(self, name, recipe)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Returns:
new empty dictionary

Overrides: dict.__init__
(inherited documentation)