From f30199c5ee65735a7db18bed46e5ad1d028ad7c3 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sat, 4 Mar 2023 18:49:13 +0200 Subject: [PATCH] Fixed for ponce --- slpkg/check_updates.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)