mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Updated for order
This commit is contained in:
parent
134035fbdb
commit
b71b52642c
1 changed files with 13 additions and 12 deletions
|
@ -105,14 +105,7 @@ class UpdateRepositories(Configs): # pylint: disable=[R0902]
|
|||
repo (str): Repository name.
|
||||
"""
|
||||
urls: dict = {}
|
||||
|
||||
self.utils.create_directory(self.repos.repositories[repo]['path'])
|
||||
self.utils.remove_file_if_exists(self.repos.repositories[repo]['path'],
|
||||
self.repos.repositories[repo]['changelog_txt'])
|
||||
self.utils.remove_file_if_exists(self.repos.repositories[repo]['path'],
|
||||
self.repos.repositories[repo]['packages_txt'])
|
||||
self.utils.remove_file_if_exists(self.repos.repositories[repo]['path'],
|
||||
self.repos.repositories[repo]['checksums_md5'])
|
||||
self.import_gpg_key(mirror=self.repos.repositories[repo]['mirror_changelog'])
|
||||
|
||||
changelog: str = (f"{self.repos.repositories[repo]['mirror_changelog']}"
|
||||
f"{self.repos.repositories[repo]['changelog_txt']}")
|
||||
|
@ -123,7 +116,14 @@ class UpdateRepositories(Configs): # pylint: disable=[R0902]
|
|||
|
||||
urls[repo] = ((changelog, packages, checksums), self.repos.repositories[repo]['path'])
|
||||
|
||||
self.import_gpg_key(mirror=self.repos.repositories[repo]['mirror_changelog'])
|
||||
self.utils.remove_file_if_exists(self.repos.repositories[repo]['path'],
|
||||
self.repos.repositories[repo]['changelog_txt'])
|
||||
self.utils.remove_file_if_exists(self.repos.repositories[repo]['path'],
|
||||
self.repos.repositories[repo]['packages_txt'])
|
||||
self.utils.remove_file_if_exists(self.repos.repositories[repo]['path'],
|
||||
self.repos.repositories[repo]['checksums_md5'])
|
||||
|
||||
self.utils.create_directory(self.repos.repositories[repo]['path'])
|
||||
|
||||
self.download.download(urls)
|
||||
|
||||
|
@ -135,18 +135,19 @@ class UpdateRepositories(Configs): # pylint: disable=[R0902]
|
|||
Args:
|
||||
repo (str): Repository name.
|
||||
"""
|
||||
self.utils.create_directory(self.repos.repositories[repo]['path'])
|
||||
self.import_gpg_key(mirror='https://www.slackbuilds.org/')
|
||||
|
||||
self.utils.remove_file_if_exists(self.repos.repositories[repo]['path'],
|
||||
self.repos.repositories[repo]['slackbuilds_txt'])
|
||||
self.utils.remove_file_if_exists(self.repos.repositories[repo]['path'],
|
||||
self.repos.repositories[repo]['changelog_txt'])
|
||||
|
||||
self.utils.create_directory(self.repos.repositories[repo]['path'])
|
||||
|
||||
lftp_command: str = (f"lftp {self.lftp_mirror_options} "
|
||||
f"{self.repos.repositories[repo]['mirror_packages']} "
|
||||
f"{self.repos.repositories[repo]['path']}")
|
||||
|
||||
self.import_gpg_key(mirror='https://www.slackbuilds.org/')
|
||||
|
||||
self.multi_process.process(lftp_command)
|
||||
|
||||
# It checks if there is a SLACKBUILDS.TXT file, otherwise it's going to create one.
|
||||
|
|
Loading…
Reference in a new issue