MCPcopy Index your code
hub / github.com/aptly-dev/aptly / apiReposPackagesAdd

Function apiReposPackagesAdd

api/repos.go:502–507  ·  view source on GitHub ↗

@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)

Source from the content-addressed store, hash-verified

500// @Failure 400 {object} Error "Internal Server Error"
501// @Router /api/repos/{name}/packages [post]
502func 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.**

Callers

nothing calls this directly

Calls 3

PrintfMethod · 0.65
AddMethod · 0.45

Tested by

no test coverage detected