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

Method AppStreamPaths

deb/remote.go:279–289  ·  view source on GitHub ↗

AppStreamPaths returns dep11 file paths from ReleaseFiles for a given component

(component string)

Source from the content-addressed store, hash-verified

277
278// AppStreamPaths returns dep11 file paths from ReleaseFiles for a given component
279func (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
292func (repo *RemoteRepo) DownloadAppStreamFiles(progress aptly.Progress, d aptly.Downloader,

Callers 2

TestAppStreamPathsMethod · 0.80

Calls 2

HasPrefixMethod · 0.65
StringsMethod · 0.45

Tested by 1

TestAppStreamPathsMethod · 0.64