kojiwrapper: Stop being smart about local access

Rather than trying to use local access when it's accessible, let user
make the decision:

 * if koji_cache is configured use it and download stuff
 * if not, fall back to local access

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2023-07-19 11:47:17 +02:00 committed by lsedlar
parent aa0aae3d3e
commit 0d3cd150bd
3 changed files with 22 additions and 9 deletions

View file

@ -256,7 +256,7 @@ class DummyCompose(object):
self.containers_metadata = {}
self.load_old_compose_config = mock.Mock(return_value=None)
self.koji_downloader = DummyKojiDownloader()
self.koji_downloader.cache_dir = "/prefix"
self.koji_downloader.path_prefix = "/prefix"
def setup_optional(self):
self.all_variants["Server-optional"] = MockVariant(