VerifyFiles verifies that all package files have neen correctly downloaded
(packagePool aptly.PackagePool, checksumStorage aptly.ChecksumStorage)
| 764 | |
| 765 | // VerifyFiles verifies that all package files have neen correctly downloaded |
| 766 | func (p *Package) VerifyFiles(packagePool aptly.PackagePool, checksumStorage aptly.ChecksumStorage) (result bool, err error) { |
| 767 | result = true |
| 768 | |
| 769 | for _, f := range p.Files() { |
| 770 | result, err = f.Verify(packagePool, checksumStorage) |
| 771 | if err != nil || !result { |
| 772 | return |
| 773 | } |
| 774 | } |
| 775 | |
| 776 | return |
| 777 | } |
| 778 | |
| 779 | // FilepathList returns list of paths to files in package repository |
| 780 | func (p *Package) FilepathList(packagePool aptly.PackagePool) ([]string, error) { |