mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-28 19:58:18 +01:00
Split to methods
This commit is contained in:
parent
0556b65aba
commit
6751773e31
1 changed files with 6 additions and 3 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Reference in a new issue