Command to replace the whole staged source list added.

Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de>
This commit is contained in:
Christoph Fiehe
2024-10-23 15:26:31 +02:00
committed by André Roth
parent ee3124cfc6
commit c9309c926c
6 changed files with 112 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
Clearing staged source list...
Adding component 'main-new' with source 'snap2' [snapshot]...
Adding component 'test-new' with source 'snap3' [snapshot]...
You can run 'aptly publish update maverick .' to update the content of the published repository.

View File

@@ -156,6 +156,22 @@ class PublishSourceUpdate3Test(BaseTest):
gold_processor = BaseTest.expand_environ
class PublishSourceReplace1Test(BaseTest):
"""
publish source replace: Replace existing sources
"""
fixtureDB = True
fixturePool = True
fixtureCmds = [
"aptly snapshot create snap1 from mirror gnuplot-maverick",
"aptly snapshot create snap2 empty",
"aptly snapshot create snap3 empty",
"aptly publish snapshot -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec -distribution=maverick -component=main,test snap1 snap2",
]
runCmd = "aptly publish source replace -component=main-new,test-new maverick snap2 snap3"
gold_processor = BaseTest.expand_environ
class PublishSourceRemove1Test(BaseTest):
"""
publish source remove: Remove single source