mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-09-29 17:37:36 +02:00
Updated for local size
This commit is contained in:
parent
61ad20ed43
commit
0aa3dd6701
1 changed files with 3 additions and 2 deletions
|
@ -101,8 +101,6 @@ class CheckUpdates(Configs):
|
|||
|
||||
try:
|
||||
repo = self.http.request('GET', repo_chg_txt)
|
||||
if local_chg_txt.is_file():
|
||||
local_size: int = int(os.stat(local_chg_txt).st_size)
|
||||
except KeyboardInterrupt:
|
||||
raise SystemExit(1)
|
||||
except HTTPError:
|
||||
|
@ -111,6 +109,9 @@ class CheckUpdates(Configs):
|
|||
else:
|
||||
repo_size: int = int(repo.headers['Content-Length'])
|
||||
|
||||
if local_chg_txt.is_file():
|
||||
local_size: int = int(os.stat(local_chg_txt).st_size)
|
||||
|
||||
logger = logging.getLogger(LoggingConfig.date_time)
|
||||
logger.info(f'{self.__class__.__name__}: '
|
||||
f'{self.__class__.compare_the_changelogs.__name__}: '
|
||||
|
|
Loading…
Reference in a new issue