add the DistGitDirectory class

This commit is contained in:
Brian Stinson 2015-07-19 15:33:38 -05:00
parent ebeaf18d4e
commit 7ae64c7539

View file

@ -23,6 +23,14 @@ from pyrpkg import Commands, rpkgError
from . import centos_cert from . import centos_cert
from . import cli from . import cli
class DistGitDirectory(object):
def __init__(self, branchtext):
sigtobranchre = r'sig-(?P<signame>\w+)(?P<centosversion>\d)-?(?P<projectname>\w+)?-?(?P<releasename>\w+)?'
match = re.match(sigtobranchre, branchtext)
if match:
self.__dict__.update(match.groupdict())
class Commands(pyrpkg.Commands): class Commands(pyrpkg.Commands):
''' '''
For the pyrpkg commands with centpkg behavior For the pyrpkg commands with centpkg behavior