sources: rename download -> fetch_all
Not all sources download things and `fetch_all` is consistent with `fetch_one`.
This commit is contained in:
parent
382ac8e960
commit
f9b55ff6a0
6 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue