MCPcopy Create free account
hub / github.com/Debian/dcs / Server

Struct Server

internal/sourcebackend/sourcebackend.go:138–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected