Fixed for ponce

This commit is contained in:
Dimitris Zlatanidis 2023-03-04 18:49:13 +02:00
parent 979f8b7d34
commit f30199c5ee

View file

@ -27,9 +27,14 @@ class CheckUpdates(Configs):
local_date: int = 0 local_date: int = 0
local_chg_txt = Path(self.sbo_repo_path, self.sbo_chglog_txt) 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() 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(): if local_chg_txt.is_file():
local_date = int(os.stat(local_chg_txt).st_size) local_date = int(os.stat(local_chg_txt).st_size)