AppStreamPaths returns dep11 file paths from ReleaseFiles for a given component
(component string)
| 277 | |
| 278 | // AppStreamPaths returns dep11 file paths from ReleaseFiles for a given component |
| 279 | func (repo *RemoteRepo) AppStreamPaths(component string) []string { |
| 280 | prefix := component + "/dep11/" |
| 281 | var paths []string |
| 282 | for path := range repo.ReleaseFiles { |
| 283 | if strings.HasPrefix(path, prefix) { |
| 284 | paths = append(paths, path) |
| 285 | } |
| 286 | } |
| 287 | sort.Strings(paths) |
| 288 | return paths |
| 289 | } |
| 290 | |
| 291 | // DownloadAppStreamFiles downloads AppStream (DEP-11) metadata files and imports them into the pool |
| 292 | func (repo *RemoteRepo) DownloadAppStreamFiles(progress aptly.Progress, d aptly.Downloader, |