Split to methods

This commit is contained in:
Dimitris Zlatanidis 2023-03-28 17:39:18 +03:00
parent 0556b65aba
commit 6751773e31

View file

@ -53,12 +53,13 @@ class UpdateRepository(Configs):
print()
if self.utils.is_option(self.flag_bin_repository, self.flags):
self.binary_repositories()
self.alien_repository()
self.gnome_repository()
self.conraid_repository()
else:
self.slackbuild_repositories()
def binary_repositories(self):
""" Update the binary repositories. """
def alien_repository(self):
if (self.repos.alien_repo and self.repository == self.repos.alien_repo_name or
self.repos.alien_repo and self.repository == '*' or self.repos.alien_repo and not self.repository):
urls: list = []
@ -82,6 +83,7 @@ class UpdateRepository(Configs):
self.data.install_alien_data()
print()
def gnome_repository(self):
if (self.repos.gnome_repo and self.repository == self.repos.gnome_repo_name or
self.repos.conraid_repo and self.repository == '*' or self.repos.gnome_repo and not self.repository):
urls: list = []
@ -105,6 +107,7 @@ class UpdateRepository(Configs):
self.data.install_gnome_data()
print()
def conraid_repository(self):
if (self.repos.conraid_repo and self.repository == self.repos.conraid_repo_name or
self.repos.conraid_repo and self.repository == '*' or self.repos.conraid_repo and not self.repository):
urls: list = []