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

Class AutoBuildPackage

source code

AutoBuildPackage creates a set of BuildComponent instances and provides facilities for automatically populating them with files according to Filters.

Instance Methods [hide private]
 
__init__(self, pkgFilters, compFilters, recipe) source code
 
_getname(self, pkgname, compname) source code
 
findComponent(self, path, mode=None)
Return the BuildComponent that matches the path.
source code
 
updateFileContents(self, path, realPath)
Update contents information, including sha1 and contents
source code
None
addFile(self, path, realPath)
Add a path to the correct BuildComponent instance by matching the file name against the package and component filters
source code
None
delFile(self, path)
Remove a file from the package and from the caches.
source code
 
addDevice(self, path, devtype, major, minor, owner='root', group='root', perms=432)
Add a device to the correct BuildComponent instance by matching the file name against the package and component filters
source code
list
getComponents(self)
Examine the BuildComponent instances that have been created and return a list that includes only those which have files
source code
Method Details [hide private]

__init__(self, pkgFilters, compFilters, recipe)
(Constructor)

source code 
Parameters:
  • pkgFilters (sequence of Filter instances) - Filters used to add files to main packages
  • compFilters (sequence of Filter instances) - Filters used to add files to components

addFile(self, path, realPath)

source code 
Add a path to the correct BuildComponent instance by matching the file name against the package and component filters
Parameters:
  • path (str) - path to add to the BuildComponent
Returns: None

delFile(self, path)

source code 
Remove a file from the package and from the caches.
Parameters:
  • path (str) - path to remove from the BuildComponent
Returns: None

getComponents(self)

source code 
Examine the BuildComponent instances that have been created and return a list that includes only those which have files
Returns: list
list of BuildComponent instances