MCPcopy Create free account
hub / github.com/aptly-dev/aptly / Update

Method Update

deb/local.go:160–167  ·  view source on GitHub ↗

Update stores updated information about repo in DB

(repo *LocalRepo)

Source from the content-addressed store, hash-verified

158
159// Update stores updated information about repo in DB
160func (collection *LocalRepoCollection) Update(repo *LocalRepo) error {
161 batch := collection.db.CreateBatch()
162 _ = batch.Put(repo.Key(), repo.Encode())
163 if repo.packageRefs != nil {
164 _ = batch.Put(repo.RefKey(), repo.packageRefs.Encode())
165 }
166 return batch.Write()
167}
168
169// LoadComplete loads additional information for local repo
170func (collection *LocalRepoCollection) LoadComplete(repo *LocalRepo) error {

Callers 1

AddMethod · 0.95

Calls 6

CreateBatchMethod · 0.65
PutMethod · 0.65
WriteMethod · 0.65
KeyMethod · 0.45
EncodeMethod · 0.45
RefKeyMethod · 0.45

Tested by

no test coverage detected