mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-23 11:18:28 +00:00
Add -force-overwrite flag to publish update, switch, snapshot and repo commands. #90
Includes new and updated system tests.
This commit is contained in:
1 parent
fe879acf9c
commit
bb6593d21e
32 files changed
+284
-6
No files matched your search
@@ -81,8 +81,8 @@ func aptlyPublishSwitch(cmd *commander.Command, args []string) error {
|
||||
|
||||
forceOverwrite := context.flags.Lookup("force-overwrite").Value.Get().(bool)
|
||||
if forceOverwrite {
|
||||
context.Progress().Printf("WARNING: force overwrite mode enabled, aptly might corrupt other published repositories sharing " +
|
||||
"the same package pool.")
|
||||
context.Progress().ColoredPrintf("@rWARNING@|: force overwrite mode enabled, aptly might corrupt other published repositories sharing " +
|
||||
"the same package pool.\n")
|
||||
}
|
||||
|
||||
err = published.Publish(context.PackagePool(), context, context.CollectionFactory(), signer, context.Progress(), forceOverwrite)
|
||||
|
||||
Reference in new issue
Block a user