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

Class EapiDefinition

source code

object --+    
         |    
 LineCheck --+
             |
            EapiDefinition

Check that EAPI assignment conforms to PMS section 7.3.1 (first non-comment, non-blank line).

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

Inherited from LineCheck: check_eapi

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'EAPI.definition'
  ignore_comment = True
  _eapi_re = re.compile(r'^[ \t]*EAPI=([\'"]?)([A-Za-z0-9\+_\.-]...

Inherited from LineCheck: ignore_line

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

new(self, pkg)

source code 
Overrides: LineCheck.new

check(self, num, line)

source code 

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

Overrides: LineCheck.check
(inherited documentation)

end(self)

source code 
Overrides: LineCheck.end

Class Variable Details [hide private]

_eapi_re

Value:
re.compile(r'^[ \t]*EAPI=([\'"]?)([A-Za-z0-9\+_\.-]*)\1[ \t]*([ \t]#.*\
)?$')