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

Method Verify

deb/package_files.go:29–36  ·  view source on GitHub ↗

Verify that package file is present and correct

(packagePool aptly.PackagePool, checksumStorage aptly.ChecksumStorage)

Source from the content-addressed store, hash-verified

27
28// Verify that package file is present and correct
29func (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//

Callers

nothing calls this directly

Calls 1

VerifyMethod · 0.65

Tested by

no test coverage detected