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

Method Files

deb/package.go:525–535  ·  view source on GitHub ↗

Files returns parsed files records (it may load it from collection)

()

Source from the content-addressed store, hash-verified

523
524// Files returns parsed files records (it may load it from collection)
525func (p *Package) Files() PackageFiles {
526 if p.files == nil {
527 if p.collection == nil {
528 panic("files == nil && collection == nil")
529 }
530
531 p.files = p.collection.loadFiles(p)
532 }
533
534 return *p.files
535}
536
537// Contents returns cached package contents
538func (p *Package) Contents(packagePool aptly.PackagePool, progress aptly.Progress) []string {

Callers 15

CalculateContentsMethod · 0.95
StanzaMethod · 0.95
LinkFromPoolMethod · 0.95
DownloadListMethod · 0.95
VerifyFilesMethod · 0.95
FilepathListMethod · 0.95
BuildDownloadQueueMethod · 0.95
SetUpTestMethod · 0.80
ImportPackageFilesFunction · 0.80
FinalizeDownloadMethod · 0.80

Calls 1

loadFilesMethod · 0.80

Tested by 11

SetUpTestMethod · 0.64
TestNewFromParaMethod · 0.64
TestNewUdebFromParaMethod · 0.64
TestNewSourceFromParaMethod · 0.64
TestEqualsMethod · 0.64
TestLinkFromPoolMethod · 0.64
TestDownloadListMethod · 0.64
TestVerifyFilesMethod · 0.64
TestByKeyMethod · 0.64
TestByKeyOld0_3Method · 0.64