Contents returns cached package contents
(packagePool aptly.PackagePool, progress aptly.Progress)
| 536 | |
| 537 | // Contents returns cached package contents |
| 538 | func (p *Package) Contents(packagePool aptly.PackagePool, progress aptly.Progress) []string { |
| 539 | if p.IsSource { |
| 540 | return nil |
| 541 | } |
| 542 | |
| 543 | return p.collection.loadContents(p, packagePool, progress) |
| 544 | } |
| 545 | |
| 546 | // CalculateContents looks up contents in package file |
| 547 | func (p *Package) CalculateContents(packagePool aptly.PackagePool, progress aptly.Progress) ([]string, error) { |