mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Fixed for ponce
This commit is contained in:
parent
979f8b7d34
commit
f30199c5ee
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue