Fixed for changelog file

This commit is contained in:
Dimitris Zlatanidis 2023-03-05 21:20:58 +02:00
parent 4dac3f9424
commit 609510dd8b

View file

@ -21,16 +21,18 @@ class CheckUpdates(Configs):
self.green: str = self.color['green']
self.yellow: str = self.color['yellow']
self.endc: str = self.color['endc']
self.local_chg_txt = Path(self.sbo_repo_path, self.sbo_chglog_txt)
self.repo_chg_txt: str = f'{self.sbo_repo_url}{self.sbo_chglog_txt}'
self.changelog_txt: str = self.sbo_chglog_txt
self.local_chg_txt = Path(self.sbo_repo_path, self.changelog_txt)
self.repo_chg_txt: str = f'{self.sbo_repo_url}{self.changelog_txt}'
def check(self) -> bool:
""" Checks the ChangeLogs and returns True or False. """
local_date: int = 0
if self.ponce_repo:
self.local_chg_txt = Path(self.ponce_repo_path, self.ponce_chglog_txt)
self.repo_chg_txt: str = f'{self.ponce_repo_url}{self.ponce_chglog_txt}'
self.changelog_txt: str = self.ponce_chglog_txt
self.local_chg_txt = Path(self.ponce_repo_path, self.changelog_txt)
self.repo_chg_txt: str = f'{self.ponce_repo_url}{self.changelog_txt}'
http = urllib3.PoolManager()
repo = http.request('GET', self.repo_chg_txt)
@ -50,7 +52,7 @@ class CheckUpdates(Configs):
def updates(self) -> None:
""" Starting multiprocessing download process. """
message: str = f'Checking for news in the {self.repo_chg_txt} file...'
message: str = f'Checking for news in the {self.changelog_txt} file...'
# Starting multiprocessing
p1 = Process(target=self.view_message)