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)
| 39 | // |
| 40 | // For legacy packages which do not have PoolPath field set, that calculates LegacyPath via pool |
| 41 | func (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 |
| 52 | func (f *PackageFile) DownloadURL() string { |
no test coverage detected