Class IncludeLicense
source code
action.Action --+
|
action.RecipeAction --+
|
BuildAction --+
|
IncludeLicense
NAME
r.IncludeLicense() - Adds entries to the
licenses conary understands
SYNOPSIS
r.IncludeLicense(directory || (file,
license))
DESCRIPTION
The r.IncludeLicense() class is called from within a
Conary recipe to add a new license to the list of known licenses.
EXAMPLES
r.IncludeLicense(('gpl.txt', 'GPL-2'), ('cpl',
'CPL-1.0'))
Calls r.IncludeLicense() to add the GPL and CPL
licenses to the known licenses.
C {r.IncludeLicense('licensedir')}
Calls r.IncludeLicense() to add a directory of licenses
to the known licences. The format for this directory is the same format
as %(datadir)s/known-licenses. Note that all sha1sum values will be
recalculated after normalization of the license text, so the filename
inside the license directory is irrelevent.
Do the build action
- Overrides:
BuildAction.do
- (inherited documentation)
|