From 9d9a9584e83e1414da3d52be9965ff4615eddb5a Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Thu, 14 Mar 2024 18:52:43 +0200 Subject: [PATCH] Remove split() method --- slpkg/binaries/required.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slpkg/binaries/required.py b/slpkg/binaries/required.py index 0b105425..c833dda3 100644 --- a/slpkg/binaries/required.py +++ b/slpkg/binaries/required.py @@ -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)