mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
When doing db cleanup, consider package references stored in PublishedRepos
of local repo publishes. #146
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Loading mirrors, local repos and snapshots...
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (0)...
|
||||
Building list of files referenced by packages...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Loading mirrors, local repos and snapshots...
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (73270)...
|
||||
Building list of files referenced by packages...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Loading mirrors, local repos and snapshots...
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (7)...
|
||||
Building list of files referenced by packages...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Loading mirrors, local repos and snapshots...
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (0)...
|
||||
Building list of files referenced by packages...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Loading mirrors, local repos and snapshots...
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (7)...
|
||||
Building list of files referenced by packages...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Loading mirrors, local repos and snapshots...
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (0)...
|
||||
Building list of files referenced by packages...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Loading mirrors, local repos and snapshots...
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (0)...
|
||||
Building list of files referenced by packages...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Loading mirrors, local repos and snapshots...
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (3)...
|
||||
Building list of files referenced by packages...
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (0)...
|
||||
Building list of files referenced by packages...
|
||||
Building list of files in package pool...
|
||||
Deleting unreferenced files (0)...
|
||||
Compacting database...
|
||||
@@ -0,0 +1,4 @@
|
||||
Removing /Users/smira/.aptly/public/dists/def...
|
||||
Cleaning up prefix "." components main...
|
||||
|
||||
Published repository has been removed successfully.
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user