Remove split() method

This commit is contained in:
Dimitris Zlatanidis 2024-03-14 18:52:43 +02:00
parent c4ca6d371c
commit 9d9a9584e8

View file

@ -27,13 +27,13 @@ class Required:
self.repos.slint_repo_name
]
self.repo: str = data[name]['repository']
self.repo: str = data[name]['repo']
self.repository_packages: tuple = tuple(self.data.keys())
def resolve(self) -> tuple:
""" Resolve the dependencies. """
requires: list[str] = list(
self.remove_deps(self.data[self.name]['requires'].split())
self.remove_deps(self.data[self.name]['requires'])
)
# Resolve dependencies for some special repos.
@ -45,7 +45,7 @@ class Required:
else:
for require in requires:
sub_requires: list[str] = list(
self.remove_deps(self.data[require]['requires'].split())
self.remove_deps(self.data[require]['requires'])
)
for sub in sub_requires:
requires.append(sub)