mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-03 06:56:44 +01:00
Fixed for changelog file
This commit is contained in:
parent
4dac3f9424
commit
609510dd8b
1 changed files with 7 additions and 5 deletions
|
@ -21,16 +21,18 @@ class CheckUpdates(Configs):
|
||||||
self.green: str = self.color['green']
|
self.green: str = self.color['green']
|
||||||
self.yellow: str = self.color['yellow']
|
self.yellow: str = self.color['yellow']
|
||||||
self.endc: str = self.color['endc']
|
self.endc: str = self.color['endc']
|
||||||
self.local_chg_txt = Path(self.sbo_repo_path, self.sbo_chglog_txt)
|
self.changelog_txt: str = self.sbo_chglog_txt
|
||||||
self.repo_chg_txt: str = f'{self.sbo_repo_url}{self.sbo_chglog_txt}'
|
self.local_chg_txt = Path(self.sbo_repo_path, self.changelog_txt)
|
||||||
|
self.repo_chg_txt: str = f'{self.sbo_repo_url}{self.changelog_txt}'
|
||||||
|
|
||||||
def check(self) -> bool:
|
def check(self) -> bool:
|
||||||
""" Checks the ChangeLogs and returns True or False. """
|
""" Checks the ChangeLogs and returns True or False. """
|
||||||
local_date: int = 0
|
local_date: int = 0
|
||||||
|
|
||||||
if self.ponce_repo:
|
if self.ponce_repo:
|
||||||
self.local_chg_txt = Path(self.ponce_repo_path, self.ponce_chglog_txt)
|
self.changelog_txt: str = self.ponce_chglog_txt
|
||||||
self.repo_chg_txt: str = f'{self.ponce_repo_url}{self.ponce_chglog_txt}'
|
self.local_chg_txt = Path(self.ponce_repo_path, self.changelog_txt)
|
||||||
|
self.repo_chg_txt: str = f'{self.ponce_repo_url}{self.changelog_txt}'
|
||||||
|
|
||||||
http = urllib3.PoolManager()
|
http = urllib3.PoolManager()
|
||||||
repo = http.request('GET', self.repo_chg_txt)
|
repo = http.request('GET', self.repo_chg_txt)
|
||||||
|
@ -50,7 +52,7 @@ class CheckUpdates(Configs):
|
||||||
|
|
||||||
def updates(self) -> None:
|
def updates(self) -> None:
|
||||||
""" Starting multiprocessing download process. """
|
""" Starting multiprocessing download process. """
|
||||||
message: str = f'Checking for news in the {self.repo_chg_txt} file...'
|
message: str = f'Checking for news in the {self.changelog_txt} file...'
|
||||||
|
|
||||||
# Starting multiprocessing
|
# Starting multiprocessing
|
||||||
p1 = Process(target=self.view_message)
|
p1 = Process(target=self.view_message)
|
||||||
|
|
Loading…
Reference in a new issue