Signed-off-by: Matt Moore <mattmoor@google.com>
| ... | ... |
@@ -126,6 +126,11 @@ func (ldm *LayerDownloadManager) Download(ctx context.Context, initialRootFS ima |
| 126 | 126 |
topLayer = l |
| 127 | 127 |
missingLayer = false |
| 128 | 128 |
rootFS.Append(diffID) |
| 129 |
+ // Register this repository as a source of this layer. |
|
| 130 |
+ withRegistered, hasRegistered := descriptor.(DownloadDescriptorWithRegistered) |
|
| 131 |
+ if hasRegistered {
|
|
| 132 |
+ withRegistered.Registered(diffID) |
|
| 133 |
+ } |
|
| 129 | 134 |
continue |
| 130 | 135 |
} |
| 131 | 136 |
} |