Merge branch 'diffs' of https://bitbucket.org/yackob03/quay into diffs
This commit is contained in:
commit
8274d9af97
67 changed files with 2 additions and 2 deletions
|
@ -26,14 +26,14 @@ REFERENCE_DATE = datetime(2013, 6, 23)
|
||||||
|
|
||||||
def __gen_checksum(image_id):
|
def __gen_checksum(image_id):
|
||||||
h = hashlib.md5(image_id)
|
h = hashlib.md5(image_id)
|
||||||
return 'tarsum+sha256:' + h.hexdigest()
|
return 'tarsum+sha256:' + h.hexdigest() + h.hexdigest()
|
||||||
|
|
||||||
|
|
||||||
def __gen_image_id(repo, image_num):
|
def __gen_image_id(repo, image_num):
|
||||||
str_to_hash = "%s/%s/%s" % (repo.namespace, repo.name, image_num)
|
str_to_hash = "%s/%s/%s" % (repo.namespace, repo.name, image_num)
|
||||||
|
|
||||||
h = hashlib.md5(str_to_hash)
|
h = hashlib.md5(str_to_hash)
|
||||||
return h.hexdigest()
|
return h.hexdigest() + h.hexdigest()
|
||||||
|
|
||||||
|
|
||||||
global_image_num = [0]
|
global_image_num = [0]
|
||||||
|
|
Binary file not shown.
Reference in a new issue