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

Method Update

deb/remote.go:947–955  ·  view source on GitHub ↗

Update stores updated information about repo in DB

(repo *RemoteRepo)

Source from the content-addressed store, hash-verified

945
946// Update stores updated information about repo in DB
947func (collection *RemoteRepoCollection) Update(repo *RemoteRepo) error {
948 batch := collection.db.CreateBatch()
949
950 _ = batch.Put(repo.Key(), repo.Encode())
951 if repo.packageRefs != nil {
952 _ = batch.Put(repo.RefKey(), repo.packageRefs.Encode())
953 }
954 return batch.Write()
955}
956
957// LoadComplete loads additional information for remote repo
958func (collection *RemoteRepoCollection) LoadComplete(repo *RemoteRepo) 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