mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 16:22:55 +00:00
add the DistGitDirectory class
This commit is contained in:
parent
ebeaf18d4e
commit
7ae64c7539
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue