When doing db cleanup, consider package references stored in PublishedRepos

of local repo publishes. #146
This commit is contained in:
Andrey Smirnov
2014-11-26 23:41:18 +03:00
parent 8c54e15a11
commit d9c62780c2
12 changed files with 57 additions and 9 deletions
+19
View File
@@ -92,3 +92,22 @@ class CleanupDB8Test(BaseTest):
"aptly repo drop local-repo",
]
runCmd = "aptly db cleanup"
class CleanupDB9Test(BaseTest):
"""
cleanup db: publish local repo, remove packages from repo, db cleanup
"""
fixtureCmds = [
"aptly repo create -distribution=abc local-repo",
"aptly repo create -distribution=def local-repo2",
"aptly repo add local-repo ${files}",
"aptly publish repo local-repo",
"aptly publish repo -architectures=i386 local-repo2",
"aptly repo remove local-repo Name",
]
runCmd = "aptly db cleanup"
def check(self):
self.check_output()
self.check_cmd_output("aptly publish drop def", "publish_drop")