diff --git a/slpkg/check_updates.py b/slpkg/check_updates.py index f8672f48..3d29aa6b 100644 --- a/slpkg/check_updates.py +++ b/slpkg/check_updates.py @@ -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)