dnf-json: add __init__ for DnfJsonRequestHandler to define cache_dir

Add a small __init__ for our subclass to define our one custom
attribute.
This commit is contained in:
Achilleas Koutsou 2022-03-04 17:10:44 +01:00 committed by Christian Kellner
parent b34150be6e
commit 74d8a1a462

View file

@ -252,6 +252,10 @@ class DnfJsonRequestHandler(BaseHTTPRequestHandler):
Answers Http requests to depsolve or dump packages.
"""
def __init__(self, *args, **kwargs):
self.cache_dir = None
super().__init__(*args, **kwargs)
def init_cache_folder_list(self, repos):
cache_folders = []
for repo in repos: