mirror: fix rename

This commit is contained in:
André Roth
2026-06-29 11:14:56 +02:00
parent 87e6a36d9b
commit cdd01516e8
2 changed files with 73 additions and 0 deletions
+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)