sources: rename download -> fetch_all

Not all sources download things and `fetch_all` is consistent with
`fetch_one`.
This commit is contained in:
Simon de Vlieger 2024-01-23 11:50:52 +01:00 committed by Michael Vogt
parent 382ac8e960
commit f9b55ff6a0
6 changed files with 8 additions and 8 deletions

View file

@ -57,7 +57,7 @@ class InlineSource(sources.SourceService):
content_type = "org.osbuild.files"
def download(self, items: Dict) -> None:
def fetch_all(self, items: Dict) -> None:
filtered = filter(lambda i: not self.exists(i[0], i[1]), items.items()) # discards items already in cache
transformed = map(lambda i: self.transform(i[0], i[1]), filtered) # prepare each item to be downloaded