Updated for install data

This commit is contained in:
Dimitris Zlatanidis 2023-05-18 11:05:32 +03:00
parent 301e63a4db
commit 4f9ebdbe5d

View file

@ -78,17 +78,20 @@ class UpdateRepository(Configs):
if self.option_for_repository:
if not self.option_for_install_data:
print(f"Downloading the '{self.green}{self.repository}{self.endc}' repository "
f"in the '{self.repos.repositories[self.repository]['path']}' folder, please wait...\n")
self.view_downloading_message(self.repository)
repositories[self.repository]()
else:
for repo, value in self.repos_for_update.items():
if value:
print(f"Downloading the '{self.green}{repo}{self.endc}' repository "
f"in the '{self.repos.repositories[repo]['path']}' folder, please wait...\n")
for repo, update in self.repos_for_update.items():
if update:
if not self.option_for_install_data:
self.view_downloading_message(repo)
repositories[repo]()
print()
def view_downloading_message(self, repo: str) -> None:
print(f"Downloading the '{self.green}{repo}{self.endc}' repository "
f"in the '{self.repos.repositories[repo]['path']}' folder, please wait...\n")
def slack_repository(self):
if not self.option_for_install_data:
urls: list = []