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

Method GetPoolPath

deb/package_files.go:41–49  ·  view source on GitHub ↗

GetPoolPath returns path to the file in the pool For legacy packages which do not have PoolPath field set, that calculates LegacyPath via pool

(packagePool aptly.PackagePool)

Source from the content-addressed store, hash-verified

39//
40// For legacy packages which do not have PoolPath field set, that calculates LegacyPath via pool
41func (f *PackageFile) GetPoolPath(packagePool aptly.PackagePool) (string, error) {
42 var err error
43
44 if f.PoolPath == "" {
45 f.PoolPath, err = packagePool.LegacyPath(f.Filename, &f.Checksums)
46 }
47
48 return f.PoolPath, err
49}
50
51// DownloadURL return relative URL to package download location
52func (f *PackageFile) DownloadURL() string {

Callers 4

CalculateContentsMethod · 0.80
LinkFromPoolMethod · 0.80
FilepathListMethod · 0.80
aptlyPackageShowFunction · 0.80

Calls 1

LegacyPathMethod · 0.65

Tested by

no test coverage detected