Package repoman :: Module checks :: Class EbuildAssignment
[hide private]

Class EbuildAssignment

source code

object --+    
         |    
 LineCheck --+
             |
            EbuildAssignment
Known Subclasses:

Ensure ebuilds don't assign to readonly variables.

Instance Methods [hide private]
 
check(self, num, line)
Run the check on line and return error if there is one
source code

Inherited from LineCheck: check_eapi, end, new

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

Class Variables [hide private]
  repoman_check_name = u'variable.readonly'
  readonly_assignment = re.compile(r'^\s*(export\s+)?(A|CATEGORY...

Inherited from LineCheck: ignore_comment, ignore_line

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

check(self, num, line)

source code 

Run the check on line and return error if there is one

Overrides: LineCheck.check
(inherited documentation)

Class Variable Details [hide private]

readonly_assignment

Value:
re.compile(r'^\s*(export\s+)?(A|CATEGORY|P|PV|PN|PR|PVR|PF|D|WORKDIR|F\
ILESDIR|FEATURES|USE)=')