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

Class EbuildHeader

source code

object --+    
         |    
 LineCheck --+
             |
            EbuildHeader

Ensure ebuilds have proper headers
        Copyright header errors
        CVS header errors
        License header errors

Args:
        modification_year - Year the ebuild was last modified

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

Inherited from LineCheck: check_eapi, end

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'ebuild.badheader'
  gentoo_copyright = u'^# Copyright ((1999|2\d\d\d)-)?%s Gentoo ...
  gentoo_license = u'# Distributed under the terms of the GNU Ge...
  cvs_header = re.compile(r'^# \$Header: .*\$$')
  ignore_comment = False

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)

Class Variable Details [hide private]

gentoo_copyright

Value:
u'^# Copyright ((1999|2\d\d\d)-)?%s Gentoo Foundation$'

gentoo_license

Value:
u'# Distributed under the terms of the GNU General Public License v2'