Package gbp :: Package rpm :: Class RpmPkgPolicy
[hide private]
[frames] | no frames]

Class RpmPkgPolicy

   object --+    
            |    
pkg.PkgPolicy --+
                |
               RpmPkgPolicy

Packaging policy for RPM

Instance Methods [hide private]

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

Class Methods [hide private]

Inherited from pkg.PkgPolicy: is_valid_packagename, is_valid_upstreamversion

Static Methods [hide private]

Inherited from pkg.PkgPolicy: get_compression, has_orig, symlink_orig

Class Variables [hide private]
  packagename_re = re.compile(r'^[a-zA-Z0-9][a-zA-Z0-9-]+$')
  packagename_msg = 'Package names must be at least two characte...
  upstreamversion_re = re.compile(r'^[0-9][a-zA-Z0-9\.~]*$')
  upstreamversion_msg = 'Upstream version numbers must start wit...
Properties [hide private]

Inherited from object: __class__

Class Variable Details [hide private]

packagename_msg

Value:
'''Package names must be at least two characters long, start with an
    alphanumeric and can only contain alphanumerics or minus signs (-)\
'''

upstreamversion_msg

Value:
'''Upstream version numbers must start with a digit and can only conta\
ing alphanumerics,
    full stops (.) and tildes (~)'''