@Summary Add Packages by Key @Description **Add packages to local repository by package keys.** @Description @Description Any package can be added that is present in the aptly database (from any mirror, snapshot, local repository). This API combined with package list (search) APIs allows one to impl
(c *gin.Context)
| 500 | // @Failure 400 {object} Error "Internal Server Error" |
| 501 | // @Router /api/repos/{name}/packages [post] |
| 502 | func apiReposPackagesAdd(c *gin.Context) { |
| 503 | apiReposPackagesAddDelete(c, "Add packages to repo ", func(list *deb.PackageList, p *deb.Package, out aptly.Progress) error { |
| 504 | out.Printf("Adding package %s\n", p.Name) |
| 505 | return list.Add(p) |
| 506 | }) |
| 507 | } |
| 508 | |
| 509 | // @Summary Delete Packages by Key |
| 510 | // @Description **Remove packages from local repository by package keys.** |
nothing calls this directly
no test coverage detected