Verify that package file is present and correct
(packagePool aptly.PackagePool, checksumStorage aptly.ChecksumStorage)
| 27 | |
| 28 | // Verify that package file is present and correct |
| 29 | func (f *PackageFile) Verify(packagePool aptly.PackagePool, checksumStorage aptly.ChecksumStorage) (bool, error) { |
| 30 | generatedPoolPath, exists, err := packagePool.Verify(f.PoolPath, f.Filename, &f.Checksums, checksumStorage) |
| 31 | if exists && err == nil { |
| 32 | f.PoolPath = generatedPoolPath |
| 33 | } |
| 34 | |
| 35 | return exists, err |
| 36 | } |
| 37 | |
| 38 | // GetPoolPath returns path to the file in the pool |
| 39 | // |