mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
Updated for get requests
This commit is contained in:
parent
dfec4344af
commit
5c056ff0ed
1 changed files with 5 additions and 5 deletions
|
@ -84,12 +84,12 @@ class CheckUpdates(Configs):
|
|||
if local_chg_txt.is_file():
|
||||
local_size: int = int(os.stat(local_chg_txt).st_size)
|
||||
|
||||
repo = self.http.request(
|
||||
'GET', repo_chg_txt,
|
||||
retries=self.urllib_retries,
|
||||
redirect=self.urllib_redirect)
|
||||
|
||||
try: # Get repository changelog file size.
|
||||
repo = self.http.request(
|
||||
'GET', repo_chg_txt,
|
||||
retries=self.urllib_retries,
|
||||
redirect=self.urllib_redirect
|
||||
)
|
||||
repo_size: int = int(repo.headers.get('content-length', 0))
|
||||
except KeyboardInterrupt:
|
||||
raise SystemExit(1)
|
||||
|
|
Loading…
Reference in a new issue