| 136 | if _, err := os.Lstat(filepath.Join(indexDir, "base")); err == nil { |
| 137 | newBase, err = index.Open(filepath.Join(indexDir, "base")) |
| 138 | if err != nil { |
| 139 | newIndex.Close() |
| 140 | return fmt.Errorf("opening base index: %v", err) |
| 141 | } |
| 142 | // These packages have changed relative to the base index |
| 143 | // and their base index results will be ignored. |
| 144 | // This typically means the overlay index has a newer version, |
| 145 | // or (rarely) that the package was removed from Debian. |
| 146 | b, err := os.ReadFile(filepath.Join(indexDir, "base.hidden.list")) |
| 147 | if err != nil { |
| 148 | newIndex.Close() |
| 149 | newBase.Close() |
| 150 | return err |
nothing calls this directly
no outgoing calls
no test coverage detected