mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Updated for way to install
This commit is contained in:
parent
1a4cb17f2a
commit
ad35eaf128
2 changed files with 17 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
4.5.0 - 14/01/2023
|
||||
Updated:
|
||||
- Download first all the slackbuilds
|
||||
|
||||
4.4.9 - 13/01/2023
|
||||
Updated:
|
||||
- Color highlight for installed packages
|
||||
|
|
|
@ -68,7 +68,8 @@ class Slackbuilds:
|
|||
self.view_before_build()
|
||||
|
||||
start = time.time()
|
||||
self.download_slackbuilds_and_build()
|
||||
self.download_slackbuilds()
|
||||
self.build_and_install()
|
||||
elapsed_time = time.time() - start
|
||||
|
||||
self.utils.finished_time(elapsed_time)
|
||||
|
@ -118,8 +119,8 @@ class Slackbuilds:
|
|||
|
||||
self.view_message.question()
|
||||
|
||||
def download_slackbuilds_and_build(self):
|
||||
""" Downloads files and sources and starting the build. """
|
||||
def download_slackbuilds(self):
|
||||
""" Downloads files and sources. """
|
||||
for sbo in self.install_order:
|
||||
|
||||
package = self.utils.is_installed(sbo)
|
||||
|
@ -145,6 +146,15 @@ class Slackbuilds:
|
|||
sources = SBoQueries(sbo).sources()
|
||||
self.download_sources(sbo, sources)
|
||||
|
||||
def build_and_install(self):
|
||||
""" Build the slackbuilds and install. """
|
||||
for sbo in self.install_order:
|
||||
|
||||
package = self.utils.is_installed(sbo)
|
||||
|
||||
if (not package or self.utils.is_repo_version_bigger(sbo) or
|
||||
self.mode == 'build' or self.flag_reinstall in self.flags):
|
||||
|
||||
self.build_the_script(self.configs.build_path, sbo)
|
||||
|
||||
if not self.mode == 'build':
|
||||
|
|
Loading…
Reference in a new issue