Fix deletion of repos and users with V2 stuff

Fixes #674
This commit is contained in:
Joseph Schorr 2015-10-21 14:07:25 -04:00
parent d24e69df2d
commit 803a983126
3 changed files with 15 additions and 4 deletions

View file

@ -21,6 +21,7 @@ from data.database import (db, all_models, Role, TeamRole, Visibility, LoginServ
from data import model
from app import app, storage as store
from storage.basestorage import StoragePaths
from endpoints.v2.manifest import _generate_and_store_manifest
from workers import repositoryactioncounter
@ -132,6 +133,7 @@ def __create_subtree(repo, structure, creator_username, parent, tag_map):
new_tag = model.tag.create_or_update_tag(repo.namespace_user.username, repo.name, tag_name,
new_image.docker_image_id)
_generate_and_store_manifest(repo.namespace_user.username, repo.name, tag_name)
tag_map[tag_name] = new_tag
for tag_name in last_node_tags: