parent
688b6f935f
commit
141f664bf7
1 changed files with 4 additions and 1 deletions
|
@ -49,7 +49,10 @@ def _purge_all_repository_tags(namespace_name, repository_name):
|
|||
(namespace_name, repository_name))
|
||||
|
||||
# Delete all manifests.
|
||||
repo_tags = RepositoryTag.select().where(RepositoryTag.repository == repo.id)
|
||||
repo_tags = list(RepositoryTag.select().where(RepositoryTag.repository == repo.id))
|
||||
if not repo_tags:
|
||||
return
|
||||
|
||||
TagManifest.delete().where(TagManifest.tag << repo_tags).execute()
|
||||
|
||||
# Delete all tags.
|
||||
|
|
Reference in a new issue