diff --git a/slpkg/check_updates.py b/slpkg/check_updates.py index 502075f8..f36de810 100644 --- a/slpkg/check_updates.py +++ b/slpkg/check_updates.py @@ -27,9 +27,14 @@ class CheckUpdates(Configs): local_date: int = 0 local_chg_txt = Path(self.sbo_repo_path, self.sbo_chglog_txt) + repo_chg_txt: str = f'{self.sbo_repo_url}{self.sbo_chglog_txt}' + + if self.ponce_repo: + local_chg_txt = Path(self.ponce_repo_path, self.ponce_chglog_txt) + repo_chg_txt: str = f'{self.ponce_repo_url}{self.ponce_chglog_txt}' http = urllib3.PoolManager() - repo = http.request('GET', f'{self.sbo_repo_url}{self.sbo_chglog_txt}') + repo = http.request('GET', repo_chg_txt) if local_chg_txt.is_file(): local_date = int(os.stat(local_chg_txt).st_size)