MCPcopy Create free account
hub / github.com/aptly-dev/aptly / loadExtra

Method loadExtra

deb/package_collection.go:112–127  ·  view source on GitHub ↗

loadExtra loads Stanza with all the xtra information about the package

(p *Package)

Source from the content-addressed store, hash-verified

110
111// loadExtra loads Stanza with all the xtra information about the package
112func (collection *PackageCollection) loadExtra(p *Package) *Stanza {
113 encoded, err := collection.db.Get(p.Key("xE"))
114 if err != nil {
115 panic("unable to load extra")
116 }
117
118 stanza := &Stanza{}
119
120 decoder := codec.NewDecoderBytes(encoded, collection.codecHandle)
121 err = decoder.Decode(stanza)
122 if err != nil {
123 panic("unable to decode extra")
124 }
125
126 return stanza
127}
128
129// loadDependencies loads dependencies for the package
130func (collection *PackageCollection) loadDependencies(p *Package) *PackageDependencies {

Callers 1

ExtraMethod · 0.80

Calls 3

GetMethod · 0.65
KeyMethod · 0.45
DecodeMethod · 0.45

Tested by

no test coverage detected