@Summary Delete Packages by Key @Description **Remove packages from local repository by package keys.** @Description @Description Any package(s) can be removed from a local repository. Package references from a local repository can be retrieved with GET /api/repos/:name/packages. @Tags Repos @Param
(c *gin.Context)
| 522 | // @Failure 400 {object} Error "Internal Server Error" |
| 523 | // @Router /api/repos/{name}/packages [delete] |
| 524 | func apiReposPackagesDelete(c *gin.Context) { |
| 525 | apiReposPackagesAddDelete(c, "Delete packages from repo ", func(list *deb.PackageList, p *deb.Package, out aptly.Progress) error { |
| 526 | out.Printf("Removing package %s\n", p.Name) |
| 527 | list.Remove(p) |
| 528 | return nil |
| 529 | }) |
| 530 | } |
| 531 | |
| 532 | // @Summary Add Uploaded File |
| 533 | // @Description Import packages from files (uploaded using File Upload API) to the local repository. If directory specified, aptly would discover package files automatically. |
nothing calls this directly
no test coverage detected