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:
parent
b34150be6e
commit
74d8a1a462
1 changed files with 4 additions and 0 deletions
4
dnf-json
4
dnf-json
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue