Create tags
parent
ba9accc8de
commit
043828c6bc
|
@ -46,12 +46,13 @@ import NetLib
|
||||||
from gitlib import OpengnsysGitLibrary, NTFSImplementation
|
from gitlib import OpengnsysGitLibrary, NTFSImplementation
|
||||||
|
|
||||||
|
|
||||||
def create_image(disk_num, partition_num, repo, image_name):
|
def create_image(disk_num, partition_num, repo, image_name, tagName):
|
||||||
|
|
||||||
ntfs_impl = NTFSImplementation.NTFS3G
|
ntfs_impl = NTFSImplementation.NTFS3G
|
||||||
og_git = OpengnsysGitLibrary(ntfs_implementation = ntfs_impl)
|
og_git = OpengnsysGitLibrary(ntfs_implementation = ntfs_impl)
|
||||||
device = DiskLib.ogDiskToDev(disk_num, partition_num)
|
device = DiskLib.ogDiskToDev(disk_num, partition_num)
|
||||||
og_git.initRepo(device, image_name)
|
og_git.initRepo(device, image_name)
|
||||||
|
og_git.tag(device = device, tagName = tagName, commit = "HEAD", message = "Image created")
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
if len(sys.argv) != 6:
|
if len(sys.argv) != 6:
|
||||||
|
@ -78,7 +79,9 @@ def main():
|
||||||
logger.info("Starting CrearImagenGit")
|
logger.info("Starting CrearImagenGit")
|
||||||
|
|
||||||
|
|
||||||
retval = create_image(disk_num, partition_num, repo, image_name)
|
retval = create_image(disk_num, partition_num, repo, image_name, tag)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sys.exit(retval)
|
sys.exit(retval)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue