sources: tidy the download method
Only the "items to download" need to be passed as parameters. The rest is unpacked as attributes during the Setup step of the workflow.
This commit is contained in:
parent
92fe237f24
commit
128845da3c
5 changed files with 18 additions and 12 deletions
|
|
@ -83,7 +83,7 @@ class InlineSource(sources.SourceService):
|
|||
|
||||
content_type = "org.osbuild.files"
|
||||
|
||||
def download(self, items, _cache, _options):
|
||||
def download(self, items):
|
||||
with tempfile.TemporaryDirectory(prefix=".unverified-", dir=self.cache) as tmpdir:
|
||||
process(items, self.cache, tmpdir)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue