Merge branch 'diffs' of https://bitbucket.org/yackob03/quay into diffs

This commit is contained in:
Joseph Schorr 2013-10-18 20:40:45 -04:00
commit 8274d9af97
67 changed files with 2 additions and 2 deletions

View file

@ -26,14 +26,14 @@ REFERENCE_DATE = datetime(2013, 6, 23)
def __gen_checksum(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):
str_to_hash = "%s/%s/%s" % (repo.namespace, repo.name, image_num)
h = hashlib.md5(str_to_hash)
return h.hexdigest()
return h.hexdigest() + h.hexdigest()
global_image_num = [0]

Binary file not shown.