Merge pull request #1656 from aptly-dev/fix/mirror-rename

mirror: fix rename
This commit is contained in:
André Roth authored and GitHub committed 2026-11-01 10:36:13 +01:00
commit 5775d2e31c
2 files changed
+73

No files matched your search

+1
View File
@@ -597,6 +597,7 @@ func apiMirrorsUpdate(c *gin.Context) {
if err == nil {
return &task.ProcessReturnValue{Code: http.StatusConflict, Value: nil}, fmt.Errorf("unable to rename: mirror %s already exists", b.Name)
}
remote.Name = b.Name
}
downloader := context.NewDownloader(out)