Update stores updated information about repo in DB
(repo *RemoteRepo)
| 945 | |
| 946 | // Update stores updated information about repo in DB |
| 947 | func (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 |
| 958 | func (collection *RemoteRepoCollection) LoadComplete(repo *RemoteRepo) error { |