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:
Thomas Lavocat 2022-05-10 13:03:16 +02:00 committed by Thomas Lavocat
parent 92fe237f24
commit 128845da3c
5 changed files with 18 additions and 12 deletions

View file

@ -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)