mirror of
https://github.com/distribution/distribution.git
synced 2025-08-22 00:33:31 +00:00
Merge pull request #3 from digitalocean/awg/catalog-no-layers
catalog: List repositories with no unique layers
This commit is contained in:
commit
f8c65fc7c5
@ -143,8 +143,8 @@ func handleRepository(fileInfo driver.FileInfo, root, last string, fn func(repoP
|
|||||||
repo := filePath[len(root)+1:]
|
repo := filePath[len(root)+1:]
|
||||||
|
|
||||||
_, file := path.Split(repo)
|
_, file := path.Split(repo)
|
||||||
if file == "_layers" {
|
if file == "_manifests" {
|
||||||
repo = strings.TrimSuffix(repo, "/_layers")
|
repo = strings.TrimSuffix(repo, "/_manifests")
|
||||||
if lessPath(last, repo) {
|
if lessPath(last, repo) {
|
||||||
if err := fn(repo); err != nil {
|
if err := fn(repo); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user