distro/repo.py: fix accidental global variable
This commit is contained in:
parent
2ad4690c0a
commit
53ef22d6b8
1 changed files with 2 additions and 2 deletions
|
@ -20,12 +20,12 @@ def resolve_url(url_template, repo_name: str, arch: str):
|
|||
|
||||
|
||||
class RepoInfo:
|
||||
options: dict[str, str] = {}
|
||||
options: dict[str, str]
|
||||
url_template: str
|
||||
|
||||
def __init__(self, url_template: str, options: dict[str, str] = {}):
|
||||
self.url_template = url_template
|
||||
self.options.update(options)
|
||||
self.options = {} | options
|
||||
|
||||
|
||||
class Repo(RepoInfo, Generic[BinaryPackageType]):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue