Abstract superclass for all policy actions. Policy actions that
operate on the entire %(destdir)s implement the
do method; Policy actions that operate on a per-file basis
implement the doFile method. The doFile
function is never called for files that match an exception regexp;
do functions must implement their own exception regexp
handling.
The class variables below apply automatically to the
|
|
|
|
|
filterExpression(self,
expression,
name=None)
backwards compatibility |
source code
|
|
|
|
|
|
|
| compileFilters(self,
expressionList,
filterList,
unusedList=None) |
source code
|
|
|
None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from BasePolicy:
dbg,
error,
info,
postInit,
postPolicy,
updateArgs,
warn
Inherited from action.RecipeAction:
doAction,
doPrep,
doSuggestAutoBuildReqs,
init_error
Inherited from action.Action:
addArgs
|
|
|
bucket = None
|
|
boolean
|
recursive = True
if True, walk entire subtrees; if False, work only on contents of
listed directories (invariantsubtrees and
subtrees).
|
|
|
filetree = 1
where to look for files to which to apply the policy:
policy.DESTDIR, the default, walks the files in the
destdir, policy.BUILDDIR walks the files in
the build directory, and policy.PACKAGE iterates over
the packaged files rather than walking the destdir, which besides
being possibly faster also applies to files that are not on the
filesystem (like device nodes).
|
|
|
rootdir = None
The root of the tree to walk for files, normally implied by the
setting of filetree.
|
|
|
processUnmodified = None
allows special handling for derived packages in order to make only
appropriate changes in the derived package.
|
|
|
keywords = {'exceptions': None, 'inclusions': None, 'subtrees'...
The keywords and default values accepted by the class
|
|
|
invariantexceptions
subclasses may set to a list of exception filters that are always
applied regardless of what other exceptions may be provided by the
recipe; these exceptions being applied is an invariant condition of
the doFile method.
|
|
|
invariantinclusions
if invariantinclusions is not empty, then only files
matching a filter in it are considered to be passed to to the
doFile method.
|
|
|
invariantsubtrees
if invariantsubtrees is not empty, then it is a list
of subtrees (relative to %(destdir)s) to walk INSTEAD of
walking the entire %(destdir)s tree.
|
|
Inherited from BasePolicy:
allowUnusedFilters
|