| ... | ... |
@@ -73,9 +73,11 @@ func (s *TagStore) CmdPull(job *engine.Job) engine.Status {
|
| 73 | 73 |
} |
| 74 | 74 |
|
| 75 | 75 |
if len(repoInfo.Index.Mirrors) == 0 && ((repoInfo.Official && repoInfo.Index.Official) || endpoint.Version == registry.APIVersion2) {
|
| 76 |
- j := job.Eng.Job("trust_update_base")
|
|
| 77 |
- if err = j.Run(); err != nil {
|
|
| 78 |
- log.Errorf("error updating trust base graph: %s", err)
|
|
| 76 |
+ if repoInfo.Official {
|
|
| 77 |
+ j := job.Eng.Job("trust_update_base")
|
|
| 78 |
+ if err = j.Run(); err != nil {
|
|
| 79 |
+ log.Errorf("error updating trust base graph: %s", err)
|
|
| 80 |
+ } |
|
| 79 | 81 |
} |
| 80 | 82 |
|
| 81 | 83 |
log.Debugf("pulling v2 repository with local name %q", repoInfo.LocalName)
|